Win32 OpenGL Full Screen Minimization Processing

I am trying to create a full screen application using Win32 and OpenGL. I change the resolution with EnumDisplaySettingsand ChangeDisplaySettings, and the OpenGL functions work fine. On WndProc, I process WM_ACTIVATEAPP and detect when the user has switched focus to another window, then I minimize the application window. When the window is enlarged again, the window does not display properly. What could I enable to make the application work even after minimization?

+3
source share
1 answer

From the question, I still cannot say what you are missing and what you already have. See http://nehe.gamedev.net/ . There is a basic Opengl section code for setting up a window in full screen mode and returning to window mode. See if you can get anything from there.

-1
source

Source: https://habr.com/ru/post/1739526/


All Articles