diff options
| author | hikari <ftphikari@gmail.com> | 2022-12-13 10:25:18 +0200 |
|---|---|---|
| committer | hikari <ftphikari@gmail.com> | 2022-12-13 10:25:18 +0200 |
| commit | 1ddbe16d2807ef14e949fa884481aa467437bf9e (patch) | |
| tree | 54a40cdd8380d65ea5aa566747ae4882c69ee607 /core/sys | |
| parent | 1c4e75e83f91eba3dc33125647c11e0c43391a99 (diff) | |
sys/windows: add GetMonitorInfoW
Diffstat (limited to 'core/sys')
| -rw-r--r-- | core/sys/windows/types.odin | 19 | ||||
| -rw-r--r-- | core/sys/windows/user32.odin | 1 |
2 files changed, 20 insertions, 0 deletions
diff --git a/core/sys/windows/types.odin b/core/sys/windows/types.odin index 9a2a21070..210c39aaa 100644 --- a/core/sys/windows/types.odin +++ b/core/sys/windows/types.odin @@ -1554,6 +1554,25 @@ WA_INACTIVE :: 0 WA_ACTIVE :: 1 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 WH_MIN :: -1 WH_MSGFILTER :: -1 diff --git a/core/sys/windows/user32.odin b/core/sys/windows/user32.odin index 9a30e6454..61f2a3dac 100644 --- a/core/sys/windows/user32.odin +++ b/core/sys/windows/user32.odin @@ -100,6 +100,7 @@ foreign user32 { AdjustWindowRectExForDpi :: proc(lpRect: LPRECT, dwStyle: DWORD, bMenu: BOOL, dwExStyle: DWORD, dpi: UINT) -> BOOL --- SystemParametersInfoW :: proc(uiAction, uiParam: UINT, pvParam: PVOID, fWinIni: UINT) -> BOOL --- + GetMonitorInfoW :: proc(hMonitor: HMONITOR, lpmi: LPMONITORINFO) -> BOOL --- GetWindowDC :: proc(hWnd: HWND) -> HDC --- GetDC :: proc(hWnd: HWND) -> HDC --- |