Application-modal Windows

To create an application modal dialog window, the parent and the owner of the window being created must be different. The parent should be the desktop window handle, while the owner should be the calling dialog window's handle. For example:

IFrameWindow *anotherDlg = new IFrameWindow( MY_RES_ID, /* resource id of new window */ desktopWindow(), /* parent window handle */ this ); /* owner window handle */ anotherDlg->showModally();
Note:
See also not available yet

[Home] [Index]
Page generated by Stéphane Charette on 1997 June 30
Open Class Library (OCL) FAQ © Stéphane Charette, 1997