Skip to content

Commit

Permalink
set composited style when creating the window to remove annoying flicker
Browse files Browse the repository at this point in the history
  • Loading branch information
alzwded committed Nov 7, 2014
1 parent 5f3d1d8 commit 9ca2686
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AltTabber/AltTabber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
auto geom = GetMonitorGeometry();
// SetWindowPos(hWnd, HWND_TOPMOST, geom.x, geom.y, geom.cx, geom.cy);

hWnd = CreateWindowEx(WS_EX_TOPMOST, szWindowClass, szTitle,
hWnd = CreateWindowEx(WS_EX_TOPMOST | WS_EX_COMPOSITED, szWindowClass, szTitle,
WS_POPUP,
CW_USEDEFAULT, CW_USEDEFAULT, 400, 400, NULL, NULL, hInstance, NULL);

Expand Down

0 comments on commit 9ca2686

Please sign in to comment.