Message Boxes
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
If you are passing NULL instead of HWND of the owner process, that may happen.
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
Popular Topics
Advertisement
Recommended Tutorials
Advertisement