Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

close all children of a dialog box

Status
Not open for further replies.

dima2

Programmer
Jan 20, 2002
85
LB
hi,
i have a dialog based application, and at a certain point I would like to close all the dialog boxes (children of the main dialog window ) that were created by domodal().
how can i do that??
 
You can use GetWindow() to get all the child windows of the main dialog. But I am wondering how you can get multiple modal dialogs, because you are not able to interact with any other windows until the modal dialog is closed.
 
this will also return the controls that are in the dialog box.
how can i tell if it's a dialog box?
 
use :
if (pWnd->IsKindOf(RUNTIME_CLASS(CDialog))) to check.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top