robmar wrote:I guess the opengl driver has an issue with the device context of the external window, because not only does it hang MFC for a full 6 seconds on closing the view, but its impossible to reuse the device again, similar comments have been posted by others.
while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE))
// No message translation because we don't use WM_CHAR and it would conflict with our
// deadkey handling.
if (ExternalWindow && msg.hwnd == HWnd) // NOTE, if HWnd is NULL, message gets dispatched!! Is that SOP?
WndProc(HWnd, msg.message, msg.wParam, msg.lParam);
if (msg.message == WM_QUIT)
Close = true;
Users browsing this forum: No registered users and 0 guests