Microsoft KB Archive/61059

INF: Sample That Makes Child Window Simulate Modal Dialog Box PSS ID Number: Q61059 Article last modified on 09-06-1991 PSS database name: P_PresMan

1.21

OS/2

Summary:

The file DISABLE in the Software/Data Library contains code demonstrating how to make a child window behave like a modal dialog box. The key points are that the child must be owned by the frame and it must disable the frame. This is done by using WinSetOwner in APP.C and in the WM_COMMAND case in KidWndProc in WNDPROC.C. Also, the child must be parented by the desktop to ensure that it will not be disabled with the owner. To see how it works, use the enable and disable menu options on the child.

DISABLE can be found in the Software/Data Library by searching on the word DISABLE, the Q number of this article, or S12578. DISABLE was archived using the PKware file-compression utility.

Copyright Microsoft Corporation 1991.