Created
April 3, 2013 20:16
-
-
Save grey-code/5304819 to your computer and use it in GitHub Desktop.
AutoHotkey: WM_SETCURSOR()
This file contains 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
; Prevent "sizing arrow" cursor when hovering over window border | |
WM_SETCURSOR(wParam, lParam) { ; WM_SETCURSOR := 0x0020 | |
; standard arrow cursor | |
static HARROW := DllCall("LoadCursor", "Ptr", 0, "Ptr", 32512, "UPtr") | |
HTCODE := lParam & 0xFFFF | |
if (HTCODE > 9) && (HTCODE < 19) { ; cursor is on a border | |
DllCall("SetCursor", "Ptr", HARROW) ; show arrow cursor | |
return true ; prevent further processing | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment