Re: Catching window restore
- From: "Victor" <nijegorodov.otpusk@xxxxxxxxxx>
- Date: Mon, 28 May 2007 19:17:35 +0200
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
.
- Follow-Ups:
- Re: Catching window restore
- From: Joseph M . Newcomer
- Re: Catching window restore
- From: Drew
- Re: Catching window restore
- References:
- Catching window restore
- From: Drew
- Catching window restore
- Prev by Date: Re: Seeing VERSIONINFO under Vista?
- Next by Date: Re: Seeing VERSIONINFO under Vista?
- Previous by thread: Re: Catching window restore
- Next by thread: Re: Catching window restore
- Index(es):
Relevant Pages
|