mfc - How to check whether the pop up dialog is already open? -
I'm having a button in the main dialog, if I click on it, the pop-up dialog box will be opened. Now I want to stop building many pop-up dialog boxes when I click on that button. So, I have to check whether the child window has already been opened. Help me, how to handle the hair window?
I'm not sure that this is something in your program but definitely give it a try. Once your work is done with the first pop-up dialog box, add another button, the name is "closed" in your popup box, which will allow it to close it and for this, in the event handler, type oon OK.
void CMyDlg :: OnClose () {CDialog :: ONOK (); } .. Hope this helps.
Comments
Post a Comment