Skip to content

Instantly share code, notes, and snippets.

@davidglezz
Created November 4, 2013 17:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidglezz/7305813 to your computer and use it in GitHub Desktop.
Save davidglezz/7305813 to your computer and use it in GitHub Desktop.
Hides the cursor on a window. Even the titlebar
// 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