Wednesday, September 30, 2015

software engineering - Display a Message Box over a Full Screen DirectX application


In our custom assertion handler, I'd like to display a message box asking to see whether or not this failure can be ignored. However, when our DirectX game is full screen, I can't get the MessageBox function to display above the full screen.


Note: The first parameter to MessageBox is the the HWND used to create the device, and it still does not work.


Is this even possible?



Answer



Yeah, you very well may be out of luck - (although there's a MessageBoxOptions that allows you to specify ServiceNotification, which might do the right thing http://msdn.microsoft.com/en-us/library/system.windows.forms.messageboxoptions.aspx)



Typically I write my own message rendering at that point (to make sure you can use the assert anywhere, on xbox, whatever).


No comments:

Post a Comment

Simple past, Present perfect Past perfect

Can you tell me which form of the following sentences is the correct one please? Imagine two friends discussing the gym... I was in a good s...