Event after ShowWindow()
-
Hello :-O I would really appreciate any help on this... Is there any event or notification after the ShowWindow() function call? Is there any message indicating that the window has been shown for the first time? Thanks!
WM_WINDOWPOSCHANGED WM_WINDOWPOSCHANGING
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta
-
Hello :-O I would really appreciate any help on this... Is there any event or notification after the ShowWindow() function call? Is there any message indicating that the window has been shown for the first time? Thanks!
Is there any message indicating that the window has been shown for the first time? CWnd::PreCreateWindow method is called by the framework before the creation of the window attached to this CWnd object
-
Hello :-O I would really appreciate any help on this... Is there any event or notification after the ShowWindow() function call? Is there any message indicating that the window has been shown for the first time? Thanks!
The
WM_SHOWWINDOW
message is sent to a window when the window is about to be hidden or shown. There isn't a special message sent for the first show, so you'll have to keep a flag in the C++ class keeping track of whetherWM_SHOWWINDOW
has been sent before withwParam
==TRUE
. --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ Strange things are afoot at the U+004B U+20DD -
The
WM_SHOWWINDOW
message is sent to a window when the window is about to be hidden or shown. There isn't a special message sent for the first show, so you'll have to keep a flag in the C++ class keeping track of whetherWM_SHOWWINDOW
has been sent before withwParam
==TRUE
. --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ Strange things are afoot at the U+004B U+20DD