Advertisement

Message Boxes

Started by March 24, 2002 10:54 PM
4 comments, last by perfectly_dark 22 years, 7 months ago
I made a full screen direct draw app that uses message boxes to display errors, however, the message box always goes to the back and if i want to read it i have to ALT-TAB out of the prog. What do i hvae to do to get it on top of my applicatoin?
Add MB_SYSTEMMODAL to the style flag, making certain to pass the hwnd for your main window. If you have to pass NULL as the HWND, use MB_TASKMODAL.
"I thought what I'd do was, I'd pretend I was one of those deaf-mutes." - the Laughing Man
Advertisement
If you are passing NULL instead of HWND of the owner process, that may happen.
paste some code
Rhino2876
Thanks alot, i passed hwnd and added the MB_SYSTEMMODAL flag and it worked like charm. (this is why i love GameDev)
Thanks alot, i passed hwnd and added the MB_SYSTEMMODAL flag and it worked like charm. (this is why i love GameDev)

This topic is closed to new replies.

Advertisement