S
sgrm123
Guest
Hi,
In my MDI application I have a button in a MFC Dialog. When clicking the button I am displaying a popup modeless dialog . When clicking outside of the newly created popup dialog I am destroying that dialog.
In the newly created dialog, I overrode the OnActivate() and when getting nstate as WA_INACTIVE, I am destroying the dialog.
Now My requirement is
1. When I click the button second time if the popup dialog is destroyed by clicking outside of the dialog other than this button, I have to display the popup dialog again.
2.When I click the button second time if the popup dialog is destroyed by clicking on this button , I should not display the dialog.
OnActivate event of the new popup dialog is getting called before the OnButtonClick of the parent dialog. Whenever I go to OnButtonClick the new popup dialog is in destroyed state only.
In onActivate the pWndOther is always giving cmainframe window when nstate is WA_INACTIVE.
How to get whether user clicked on the button or any other control or dialog or mainframe or view?
Continue reading...
In my MDI application I have a button in a MFC Dialog. When clicking the button I am displaying a popup modeless dialog . When clicking outside of the newly created popup dialog I am destroying that dialog.
In the newly created dialog, I overrode the OnActivate() and when getting nstate as WA_INACTIVE, I am destroying the dialog.
Now My requirement is
1. When I click the button second time if the popup dialog is destroyed by clicking outside of the dialog other than this button, I have to display the popup dialog again.
2.When I click the button second time if the popup dialog is destroyed by clicking on this button , I should not display the dialog.
OnActivate event of the new popup dialog is getting called before the OnButtonClick of the parent dialog. Whenever I go to OnButtonClick the new popup dialog is in destroyed state only.
In onActivate the pWndOther is always giving cmainframe window when nstate is WA_INACTIVE.
How to get whether user clicked on the button or any other control or dialog or mainframe or view?
Continue reading...