05-26-2009 01:55 PM
When using the software to create a modeless subdialog. The subdialog does not allow the launching Dialog to come to the foreground when clicked, or a focus change. I have to minimize the subdialog or move it to get the
Parent or main dialog back into the foreground. The software was for "ModelessDialog.cpp obtained from the NI Site.
Solved! Go to Solution.
05-27-2009 08:28 AM
Hi,
Have you incorporated modifications to the InitInstance() function in ModlessDialog.cpp? The OnButtonClickedOk() and OnCancel() functions in ModlessDialogDlg.cpp determine how the subdialog is handled. You should be able to incorporate the behavior you are wanting into these functions.
-Adri K
05-27-2009 09:01 AM
It seems you can change the create to : psubdlg->Create(IDD_SUBDIALOG, this->GetDesktopWindow());
This solves the overlap issue so that when you click on the parent window it overlaps the child on the GUI.