Re: Catching window restore

Tech-Archive recommends: Fix windows errors by optimizing your registry



As Joe already wrote add the WM_SIZE handler and check the first parameter
value to be SIZE_RESTORED or SIZE_MAXIMIZED.
However, if you need to distinguish the cases when window was restored from
its minimized state (but not from maximized one!) you will need to implement
a Boolean flag (m_bMinimized), set it to true after window has been
minimized (do it in the same WM_SIZE handler), reset it to true after
restoring, and check this flag while "restoring"/"maximizing".

Victor

"Drew" <dam@xxxxxxx> wrote in message
news:ORNgDRxnHHA.5032@xxxxxxxxxxxxxxxxxxxxxxx
Is there a way to catch when a window is restored when it is
clicked in taskbar? I tried defining OnSysCommand() for
my main frame class, but it wasn't hit.

Thanks,
Drew



.



Relevant Pages

  • Re: Fullscreen PPC
    ... timer handler and nothing in the WM_ACTIVATE handler, ... You select the window that you want to know about from the Windows List ... Paul T. ... // Resize the window over the taskbar area. ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Child Window Creation
    ... your handler! ... painted until all posted messages have been pumped. ... but it was getting handled before the window painted. ...
    (microsoft.public.vc.mfc)
  • Re: Dialog ghost left on window
    ... In my dialog's OnClosed handler, ... // This should invalidate the ApplicationForm... ... > a user mode long processing loop, ... >> I have a Systems.Windows.Forms.Form-based window. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Cant Move Overlapped Window to Front
    ... I know that my message pump is working -- when I ... my OnPaint() handler executes and I ... can see the updates in the portion of my window not obscured by other ...
    (microsoft.public.vc.mfc)
  • Re: Notification of timezone change
    ... inside the message handler to retrieve it again and compare with cached value, ... settings, this parameter points to the string "intl". ... For a console application, you may implement a "listener" thread (this is the ... When this receiver window gets the message, ...
    (microsoft.public.win32.programmer.kernel)