开发者

How to check whether the pop up dialog is already open?

开发者 https://www.devze.com 2023-04-01 06:10 出处:网络
I am having a button in main dialog,if I click that,pop up dialog box will be opened.Now,I should st开发者_Go百科op creation of so many pop up dialog boxes when I click that button.So,I need to check

I am having a button in main dialog,if I click that,pop up dialog box will be opened.Now,I should st开发者_Go百科op creation of so many pop up dialog boxes when I click that button.So,I need to check whether the child window is opened already.Help me,how to get the handle of child window?


I'm not sure if this is something that you would want in your program but surely give it a try. May be once your work is done with the first pop up dialog box, add another button, name is "Close" in your popup box that would allow it close it and in the Event Handler for it, just type OnOK().

void CMyDlg::OnClose()
{
    CDialog::OnOK();
}

.. Hope this helps.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号