View Full Version : Message box being hidden
braveheart09
02-26-2006, 02:12 PM
Hi all,
I have some message boxes that are triggered from some buttons on a dialog. The dialog is set to open in full screen mode. The funny thing is that when the message boxes are triggered they get focus but they go behind my dialog.
Any idea why this is happening and how to get them on top of the dialog?
Thanks in advance.
_Aerospace_Eng_
02-26-2006, 08:09 PM
Nope no idea. You haven't told us what language you are using.
braveheart09
02-26-2006, 09:14 PM
oops sorry ... no wonder i wasn't getting any replies
I'm using Visual C++ and my messageboxes just keep going behind my dialog.
_Aerospace_Eng_
02-26-2006, 10:49 PM
Still wonder why you aren't getting answers? Do you have any code to show us? That might help us help you.
braveheart09
02-27-2006, 07:37 PM
Here's the main stuff i have some problems with
Most of the stuff is in the OnInitDialog() method in the OpenGLMFCDlg cpp file. The message boxes are triggered mainly towards the end of this file.
It's a RAR file but i changed the extension to ZIP so that i could upload it. (Laziness ... i tell you)
Mhtml
02-28-2006, 08:06 AM
Which message box isn't showing? Like, give us a line number or numbers to work with here.
braveheart09
03-05-2006, 11:05 PM
Thanks guys for atleast showing some urge to try help me out...
I found a way to get my message boxes to appear in front:
::MessageBox(0,"Another Event fired","My fired Event",MB_ICONINFORMATION |MB_SYSTEMMODAL|MB_DEFAULT_DESKTOP_ONLY);
Mhtml
03-06-2006, 02:50 AM
Hmm.. Perhaps you have a problem with your window z-index then. You should have a look at SetWindowPos() as well. Interesting problem though, rarely comes up.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.