From https://blog.csdn.net/niusiqiang/article/details/43116153
This is because OpenGL has its own function glClear to refresh the background, so Windows should not be allowed to refresh the background of the window. Otherwise, when the window needs to be redrawn, Windows automatically sends WM_ERASEBKGND first, and the default handler uses a white background brush. When the background color used by OpenGL is not white, there is a flicker of white in the drawing. This is especially true when doing animation.
Therefore, the configuration step is missing one step. Activate the message of WM_ERASEBKGND in the MFC program after the configuration step is completed
Message processing of the parent window class is disallowed in the function. It simply returns a TRUE. Return CView::OnEraseBkgnd(PDC)
You should now change this to return TRUE to solve the splash screen problem.
Reproduced in: https://www.cnblogs.com/redips-l/p/9039555.html
Read More:
- The solution of flicker and no refresh caused by OpenGL + MFC
- Solution of flash screen caused by OpenGL in MFC environment
- MFC flash screen solution
- Solution of no response of progress bar in MFC program
- Vs2013 error msb8031 solution today ran a MFC program, found that the error: error msb8031: building an MFC project for a non-U
- Solution — windows 2012 installation Framework 3.5 in VMWare
- Solution / error of. Net framework 4.0 installation failure HResult 0xc8000222 solution
- Android set request window feature( Window.FEATURE_ NO_ Title) invalid solution
- The solution of using OpenGL’s Glu Library in qt5.2 under win7
- [Android] using request window feature( Window.FEATURE_ NO_ Title) method to remove the title invalid solution
- The solution of OpenGL not displaying normally in win7 system
- The solution of configuring OpenGL in vs2017
- Solution to the problem that OpenGL can’t find glew32.dll in vs2019
- Using pop-up window and I18N, error in render: “typeerror: cannot read property” appears_ T ‘of undefined’ solution
- Flicker problem of Vue
- VS2010 debugging window flash solution
- OpenGL result white screen solution
- Solution of command line window flashback when visual studio runs C + + program
- OpenGL learning — problems encountered in compiling OpenGL program for the first time
- Problem solving – vs debugging window flash solution