How to show (restore) my window when MessageBox dialog is not closed?
-
Let's say the user didn't click the OK-button (or any other button) of the MessageBox dialog. Is there a way to define that MessageBox dialog is still running? Or let's put in another way - for some reasons I need to show my application above all the other non-topmost windows, but I can't do this when the MessageBox/AfxMessageBox dialog is running - for example when the user didn't click on the OK button of the MessageBox dialog and has activated another application. What shall I do in order to show my application and the unclosed MessageBox dialog? Is there a way to define that MessageBox dialog is still running? Or is it possible to create a pointer to it? And what about AfxMessageBox dialog - can I create a pointer to this dialog?
-
Let's say the user didn't click the OK-button (or any other button) of the MessageBox dialog. Is there a way to define that MessageBox dialog is still running? Or let's put in another way - for some reasons I need to show my application above all the other non-topmost windows, but I can't do this when the MessageBox/AfxMessageBox dialog is running - for example when the user didn't click on the OK button of the MessageBox dialog and has activated another application. What shall I do in order to show my application and the unclosed MessageBox dialog? Is there a way to define that MessageBox dialog is still running? Or is it possible to create a pointer to it? And what about AfxMessageBox dialog - can I create a pointer to this dialog?
I guess thread safed Message will solve ur problem. There is a lot of article related to messagebox in CodeProject :) XMessageBox http://www.codeproject.com/dialog/xmessagebox.asp?msg=526428&mode=all&userid=44348#xx526428xx Goto www.codeproject.com/dialog search for messagebox. U can definetly find solution to yr problem. bye Uma