- Don't use CS_HREDRAW and CS_VREDRAW for the main window
- Reduces flicker

svn path=/trunk/; revision=51677
This commit is contained in:
Giannis Adamopoulos 2011-05-11 20:54:33 +00:00
parent 537a1dcc7f
commit ff0258baab

View file

@ -794,7 +794,6 @@ wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nSh
WndClass.lpszClassName = szWindowClass;
WndClass.lpfnWndProc = MainWindowProc;
WndClass.hInstance = hInstance;
WndClass.style = CS_HREDRAW | CS_VREDRAW;
WndClass.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_MAIN));
WndClass.hCursor = LoadCursor(NULL, IDC_ARROW);
WndClass.hbrBackground = (HBRUSH)(COLOR_BTNFACE + 1);