Special MessageBox()

Aug 24, 2009 at 5:46am
I am looking to create a message box like a regular windows error box. The user cannot be able click anywhere outside of the box or minimize the box, until 'Ok' or 'Cancel' is clicked. Is this possible? I have searched through MSDN and Google but have not found anything. Help would be much appreciated!
Thanks
-Favor

PS. I think I need to use something like this:
MessageBox(hWnd, "Anything", "Anything", MB_OK | MB_SYSTEMMODAL)
But MB_SYSTEMMODAL only disables output to the one handle(hWnd), is there a global handle that I can use that will disable input to the entire system?
Last edited on Aug 24, 2009 at 6:36am
Aug 24, 2009 at 9:11am
Added PreTranslateMessage handling messgae and forword the messge to another things or simplely retrun the comtrol to window .



Aug 24, 2009 at 12:21pm
Try using MFC (Microsoft Foundation Classes)
Aug 24, 2009 at 3:38pm
I think the OS already provides such a message box. I remember that classic VB6 can make a message box system-wide modal. I don't know how it did it, but I'm willing to bet it was OS-provided.
Aug 24, 2009 at 5:52pm
@brainwork, I cannot quite understand what your are trying to say. Please be more specific.

@charlie, I looked up the MessageBox function in MFC, it uses the same modals. Im not to familiar with MFC but this is what I found. Please tell if im not looking in the right place :P.
http://msdn.microsoft.com/en-us/library/0eebkf6f(VS.80).aspx


@webJose, that may have been the case a few years ago, at least acording to this:
http://www.daniweb.com/forums/thread48528.html
But I don't think it can be done through OS anymore.

Thank you so much for your suggestions!
I have yet to find a solution :(.
-Favor
Topic archived. No new replies allowed.