Original Post
I can''t seem to show a message box in my opengl application, it''s there but i can''t see it. I know this because the application stops, but when i hit enter it goes back to normal again.
I also disable the render context before showing it, but still it wont work.
The app looks in a simplified(extremely
) form like this:>
render();
while(GetMessage(&msg, NULL, 0, 0))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
if(IsOpenGLActive())
SwapBuffers(hDC);
}
// in proc
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM)
{
switch(msg)
{
case WM_CHAR:
DeActivateOpenGL();
if((TCHAR)wParam == ''4'') MessageBox(parms...);
return 0;
}
return defwindowproc(blaha);
}
Any ideas?