Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Modeless window does not allow refocus

Solved!
Go to solution

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.

0 Kudos
Message 1 of 3
(6,588 Views)

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

Adri Kruger
National Instruments
LabVIEW Product Marketing
0 Kudos
Message 2 of 3
(6,574 Views)
Solution
Accepted by topic author tonyp

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.

0 Kudos
Message 3 of 3
(6,570 Views)