// Must before ShowWindow() is called, otherwise fail in release mode
mOpenGlPainter.Init(hWnd);
mOpenGlPainter.Resize();
// Display the window
ShowWindow(hWnd, nCmdShow);
UpdateWindow(hWnd);
否则Release模式会间断性出错, 不知为什么
// Must before ShowWindow() is called, otherwise fail in release mode
mOpenGlPainter.Init(hWnd);
mOpenGlPainter.Resize();
// Display the window
ShowWindow(hWnd, nCmdShow);
UpdateWindow(hWnd);
否则Release模式会间断性出错, 不知为什么