How To Keep a Window Iconic (66244)



The information in this article applies to:

  • Microsoft Platform Software Development Kit (SDK) 1.0

This article was previously published under Q66244

SUMMARY

Normally, when an application's main window is being represented by an icon ("iconic"), 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.

Modification Type:MinorLast Reviewed:7/11/2005
Keywords:kbhowto kbWndw KB66244