|
-
February 3rd, 2011, 11:54 AM
#1
Problem when invoking a modeless dialog from a property page
Hello!!
I have a property page which invokes a modeless dialog. The modeless dialog gets invoked alright, but when you close the property page the modeless dialog just gets killed!!!... Neither the 'PostNcDestroy()' nor the 'OnCancel()' of the modeless dialog gets called. I have tried to specify the parent of the modeless dialog to NULL, GetDesktopWindow().. but no success. I do not understand if I change the parent of the modeless dialog to NULL, how does it know it has been invoked from a property page and it is closed when the property page is closed.
If I call the modeless dialog from any dialog say dialogA which is not a property page, then even after dialogA is closed the modeless dialog still remain. This is what is required by me. But I cannot see this behaviour when the modeless dialog comes fom the property page..
I am baffled.. Calling on expert's help and advice.
regards,
SvS
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|