Able to take controls in parent window even after launch of another dialog using DoModal
I have an application which is created using MFC and I have created a MFC dll on click of a button the exe will call the dll which in turn will launch a dll using dialogClass.DoModal(). My Problem is even after this dialog开发者_运维知识库 I am able to access my parent application. which I should not be able to access. Is there any setting for this . Can somebody help me on this
Sounds like you have created a modal-less dialog. If you create the same dialog as a modal pop-up dialog, then you should get the behaviour you have described.
This link should give you the information you are looking for: Using Dialog boxes
Other links that might be useful are:
- Dialog box styles
- Window styles
精彩评论