I'm attempting to suspend GapiDraw and use normal, non-MFC dialog processing. Any suggestions why the code fragment below seems to hang in ::MessageBox() without displaying any part of the dialog?
I've tried various permutations of the calling sequence without success.
Related thread: http://www.pocketmatrix.com/forums/viewtopic.php?t=6601
I've tried various permutations of the calling sequence without success.
Related thread: http://www.pocketmatrix.com/forums/viewtopic.php?t=6601
- Code:
HRESULT CMyApplication::ProcessNextFrame(CGapiSurface& backbuffer, DWORD dwFlags)
{
// Suspend GAPI and show a dialog
if (bShowADialog) {
m_display.SuspendDisplay ();
m_input.CloseInput (); // tried with and without this
ToggleFullscreen(this->m_hWnd, false);
::MessageBox (NULL, _T("Hey, does this work?"), _T("foobar"), MB_OKCANCEL);
bShowADialog = false;
m_display.ResumeDisplay ();
m_input.OpenInput();
ToggleFullscreen(this->m_hWnd, true);
}
// Normal ProcessNextFrame code follows...