I'm calling the function like so:
Code: Select all
MessageBox(NULL, (LPCTSTR)errorMessage, (LPCTSTR)"Epic Fail! Proceed?",MB_OKCANCEL|MB_ICONERROR|MB_APPLMODAL);
- MB_APPLMODAL
- MB_SYSTEMMODAL
- MB_TASKMODAL
- MB_SETFOREGROUND
and - MB_TOPMOST
Code: Select all
HWND windowHandle;
windowHandle = reinterpret_cast<HWND>(getVideoDriver()->getExposedVideoData().OpenGLWin32.HWnd);
MessageBox(windowHandle, (LPCTSTR)errorMessage, (LPCTSTR)"Epic Fail! Proceed?",MB_OKCANCEL|MB_ICONERROR|MB_TASKMODAL|MB_TOPMOST|MB_SETFOREGROUND)
Any idea what the problem is? I've spent a couple of days trying to fix the problem, and I'm at my wit's end
Thanks in advance
-wyrmmage