M_CXSCREEN), GetSystemMetrics(SM_CYSCREEN), SWP_SHOWWINDOW);
ShowCursor(FALSE);
SetFocus();
return m_bFullScreen = TRUE;
}
BOOL COpenGL::SetNormScreen()
{
if(!m_bInit) return FALSE;
if (m_bFullScreen) // Are We In Fullscreen Mode?
{
if (!ChangeDisplaySettings(NULL,CDS_TEST)) { // if the shortcut doesn''t work
ChangeDisplaySettings(NULL,CDS_RESET); // Do it anyway (to get the values out of the registry)
ChangeDisplaySettings(&m_DMsaved,CDS_RESET); // change it to the saved settings
} else {
ChangeDisplaySettings(NULL,CDS_RESET);
}
SetParent(m_parent);
SetWindowPos(&CWnd::wndTop,m_rect.left, m_rect.top, m_rect.Width(), m_rect.Height(), SWP_SHOWWINDOW);
ShowCursor(TRUE); // Show Mouse Pointer
m_bFullScreen = FALSE;
}
return TRUE;
}