Announcement

Collapse
No announcement yet.

Return from MINIMIZE

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Return from MINIMIZE

    IS there a Callback notification when a user clicks a Minimized taskbar ICON to Restore it?

  • #2
    Howdy, Lee!

    I don't know about a notification that ONLY applies to a restored window, but both of these are received after a restore:

    Case %WM_GETMINMAXINFO

    Case %WM_Size

    There may be others.

    Comment


    • #3
      WM_SYSCOMMAND + SC_RESTORE, be sure to read the documentation before testing for SC_RESTORE

      Comment


      • #4
        Also %WM_NCACTIVATE

        Comment


        • #5
          Like Frank said.
          In PBForms:
          Code:
          CASE %WM_NCACTIVATE
           STATIC hWndSaveFocus AS DWORD
           IF ISFALSE CB.WPARAM THEN
            hWndSaveFocus = GetFocus()
           ELSEIF hWndSaveFocus THEN
            SetFocus(hWndSaveFocus)
            hWndSaveFocus = 0
           ELSE
            BEEP:SLEEP 250:BEEP:SLEEP 250 'restored added this
           END IF
          Note: Above code will also BEEP when dialog is closed so this may be a deal breaker.

          Comment


          • #6
            What about WM_SYSCOMMAND
            Patrice Terrier
            www.zapsolution.com
            www.objreader.com
            Addons: GDImage.DLL 32/64-bit (Graphic library), WinLIFT.DLL 32/64-bit (Skin Engine).

            Comment


            • #7
              %WM_QUERYOPEN
              ..

              Comment

              Working...
              X