Author |
Topic  |
|
JohnH
2 Posts |
Posted - 04/09/2020 : 2:21:05 PM
|
I want to create a popup dialog that does not automatically close and instead closes whenever the popup loses focus.
I've got the dialog to stay open indefinitely but, now I want to make it close when i click outside of the popup.
my code is: void WorksheetSelectorDlg::OnKillFocus(CWnd* new_window) { CBCGPPopupDlg::OnKillFocus(new_window); CloseWindow(); DestroyWindow(); } }
Instead, this message is only received when I click on (focus) the popup window, so the window is destroyed without ever being able to click on any of the controls in the popup window.
I need to destroy the window when it loses focus. Any suggestions? |
|
Support
4175 Posts |
|
|
Topic  |
|
|
|