Microsoft KB Archive/66244

{|
 * width="100%"|

HOWTO: Keep a Window Iconic

 * }

Q66244

-

The information in this article applies to:


 * Microsoft Windows Software Development Kit (SDK)
 * Microsoft Win32 Software Development Kit (SDK)

-

SUMMARY
Normally, when an application's main window is being represented by an icon (&quot;iconic&quot;), you can restore it to an open window by selecting the window from the taskbar (or by double-clicking the icon in Program Manager under Windows 16-bit and Windows NT 3.51) or by choosing the Restore option from the System menu on the iconized window.

Opening the window can be prevented by placing code into the application that processes the WM_QUERYOPEN message by returning FALSE.

If it is necessary to perform processing before the iconic window is opened, the processing should be done in response to the WM_QUERYOPEN message. After processing is complete the program can return TRUE and the window will be opened.

Additional query words:

Keywords : kbOSWinNT kbGrpDSUser kbOSWin kbWndw kbWndwMsg

Issue type : kbhowto

Technology : kbWin32SDKSearch kbAudDeveloper kbSDKSearch kbWin32sSearch kbWinSDKSearch