sys/windows: add constants and macro
This commit is contained in:
1 parent
13c8149046
commit
c6903fbcd5
2 files changed
+17
-1
No files matched your search
@@ -237,6 +237,10 @@ GET_NCHITTEST_WPARAM :: #force_inline proc "contextless" (wParam: WPARAM) -> c_s
|
||||
return cast(c_short)LOWORD(cast(DWORD)wParam)
|
||||
}
|
||||
|
||||
GET_XBUTTON_WPARAM :: #force_inline proc "contextless" (wParam: WPARAM) -> WORD {
|
||||
GET_XBUTTON_WPARAM :: #force_inline proc "contextless" (wParam: WPARAM) -> WORD {
|
||||
return HIWORD(cast(DWORD)wParam)
|
||||
}
|
||||
|
||||
MAKEINTRESOURCEW :: #force_inline proc "contextless" (#any_int i: int) -> LPWSTR {
|
||||
return cast(LPWSTR)uintptr(WORD(i))
|
||||
}
|
||||
Reference in new issue
Block a user