mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 07:08:48 +00:00
sys/windows: add GetMonitorInfoW
This commit is contained in:
@@ -1554,6 +1554,25 @@ WA_INACTIVE :: 0
|
|||||||
WA_ACTIVE :: 1
|
WA_ACTIVE :: 1
|
||||||
WA_CLICKACTIVE :: 2
|
WA_CLICKACTIVE :: 2
|
||||||
|
|
||||||
|
// Struct pointed to by WM_GETMINMAXINFO lParam
|
||||||
|
MINMAXINFO :: struct {
|
||||||
|
ptReserved: POINT,
|
||||||
|
ptMaxSize: POINT,
|
||||||
|
ptMaxPosition: POINT,
|
||||||
|
ptMinTrackSize: POINT,
|
||||||
|
ptMaxTrackSize: POINT,
|
||||||
|
}
|
||||||
|
PMINMAXINFO :: ^MINMAXINFO
|
||||||
|
LPMINMAXINFO :: PMINMAXINFO
|
||||||
|
|
||||||
|
MONITORINFO :: struct {
|
||||||
|
cbSize: DWORD,
|
||||||
|
rcMonitor: RECT,
|
||||||
|
rcWork: RECT,
|
||||||
|
dwFlags: DWORD,
|
||||||
|
}
|
||||||
|
LPMONITORINFO :: ^MONITORINFO
|
||||||
|
|
||||||
// SetWindowsHook() codes
|
// SetWindowsHook() codes
|
||||||
WH_MIN :: -1
|
WH_MIN :: -1
|
||||||
WH_MSGFILTER :: -1
|
WH_MSGFILTER :: -1
|
||||||
|
|||||||
@@ -100,6 +100,7 @@ foreign user32 {
|
|||||||
AdjustWindowRectExForDpi :: proc(lpRect: LPRECT, dwStyle: DWORD, bMenu: BOOL, dwExStyle: DWORD, dpi: UINT) -> BOOL ---
|
AdjustWindowRectExForDpi :: proc(lpRect: LPRECT, dwStyle: DWORD, bMenu: BOOL, dwExStyle: DWORD, dpi: UINT) -> BOOL ---
|
||||||
|
|
||||||
SystemParametersInfoW :: proc(uiAction, uiParam: UINT, pvParam: PVOID, fWinIni: UINT) -> BOOL ---
|
SystemParametersInfoW :: proc(uiAction, uiParam: UINT, pvParam: PVOID, fWinIni: UINT) -> BOOL ---
|
||||||
|
GetMonitorInfoW :: proc(hMonitor: HMONITOR, lpmi: LPMONITORINFO) -> BOOL ---
|
||||||
|
|
||||||
GetWindowDC :: proc(hWnd: HWND) -> HDC ---
|
GetWindowDC :: proc(hWnd: HWND) -> HDC ---
|
||||||
GetDC :: proc(hWnd: HWND) -> HDC ---
|
GetDC :: proc(hWnd: HWND) -> HDC ---
|
||||||
|
|||||||
Reference in New Issue
Block a user