Created
November 4, 2013 17:06
-
-
Save davidglezz/7305813 to your computer and use it in GitHub Desktop.
Hides the cursor on a window. Even the titlebar
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Hide cursor | |
LRESULT CALLBACK dialogProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) | |
{ | |
switch(msg) | |
{ | |
// put this in your dialogProc | |
case WM_SETCURSOR: | |
SetCursor(NULL); | |
return TRUE; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment