Original Post
🔒 Locked
MessageBox() while another screen is active
Advertisement
What did you put as the parent of your messagebox? Use the messagebox that allows you to define parent, then put NULL as your parent, and it should work... unless your window that''s taking over is marked WND_TOPMOST, in which case crank that down a little to WND_TOP.
This is assuming you''re doing some MFC or Win32 stuff... you''re going to need more help if you''re trying to get an exclusive mode DirectX app to cooperate with GDI stuff like message boxes.
-fel
This is assuming you''re doing some MFC or Win32 stuff... you''re going to need more help if you''re trying to get an exclusive mode DirectX app to cooperate with GDI stuff like message boxes.
-fel
Oh sorry, I noticed now I should''ve been more precise :/
I''m making a all-around wrapper for a game using DirectX as API, but at the moment there''s no Direct3D, I''ve just got a (non-fullscreen) window. No MFC.
I''ve tried both null and parent, nothing worked. What is that WND_TOPMOST stuff you''re talking about? I''ve searched and found nothing about it, could you explain further?
I have no idea if this is any help but as soon as I press the alt button, the message pops up to the front.. maybe I just need some function to put the focus on the message? Or rather de-focus the window or something
-Lord Maz-
I''m making a all-around wrapper for a game using DirectX as API, but at the moment there''s no Direct3D, I''ve just got a (non-fullscreen) window. No MFC.
I''ve tried both null and parent, nothing worked. What is that WND_TOPMOST stuff you''re talking about? I''ve searched and found nothing about it, could you explain further?
I have no idea if this is any help but as soon as I press the alt button, the message pops up to the front.. maybe I just need some function to put the focus on the message? Or rather de-focus the window or something
-Lord Maz-
DirectX and Win32 (which your messagebox is) do not play nice with each other by default. You need to look for a tutorial on using Win32 message boxes and such over DirectX. Otherwise you might sometimes get your message box, but never consistently.
-fel
-fel
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement