aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikkel Hjortshoej <Hjortshoej@handmade.network>2017-06-01 00:05:33 +0200
committerMikkel Hjortshoej <Hjortshoej@handmade.network>2017-06-01 00:05:33 +0200
commite0b9c4a275be8ad16cac03fea65638ea8a1cec03 (patch)
treea2062574c06009a9ce104f1e82493686e54e8bb8
parentfec6df65b3306005077ee6124458eaaf3ea7ce2c (diff)
Added extra sys/windows.odin stuff
- Added PM_NOREMOVE - Added PM_NOYIELD - Added get_message_a - Added post_message_a
-rw-r--r--core/sys/windows.odin7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/sys/windows.odin b/core/sys/windows.odin
index 47f1cb86d..e985dc4c1 100644
--- a/core/sys/windows.odin
+++ b/core/sys/windows.odin
@@ -54,7 +54,9 @@ WM_WINDOWPOSCHANGED :: 0x0047;
WM_SETCURSOR :: 0x0020;
WM_CHAR :: 0x0102;
-PM_REMOVE :: 1;
+PM_NOREMOVE :: 0x0000;
+PM_REMOVE :: 0x0001;
+PM_NOYIELD :: 0x0002;
COLOR_BACKGROUND :: Hbrush(int(1));
BLACK_BRUSH :: 4;
@@ -179,9 +181,12 @@ show_window :: proc(hwnd: Hwnd, cmd_show: i32) -> Bool #foreign user32 "S
translate_message :: proc(msg: ^Msg) -> Bool #foreign user32 "TranslateMessage";
dispatch_message_a :: proc(msg: ^Msg) -> Lresult #foreign user32 "DispatchMessageA";
update_window :: proc(hwnd: Hwnd) -> Bool #foreign user32 "UpdateWindow";
+get_message_a :: proc(msg: ^Msg, hwnd: Hwnd, msg_filter_min, msg_filter_max : u32) -> Bool #foreign user32 "GetMessageA";
peek_message_a :: proc(msg: ^Msg, hwnd: Hwnd,
msg_filter_min, msg_filter_max, remove_msg: u32) -> Bool #foreign user32 "PeekMessageA";
+post_message :: proc(hwnd: Hwnd, msg, wparam, lparam : u32) -> Bool #foreign user32 "PostMessageA";
+
def_window_proc_a :: proc(hwnd: Hwnd, msg: u32, wparam: Wparam, lparam: Lparam) -> Lresult #foreign user32 "DefWindowProcA";
adjust_window_rect :: proc(rect: ^Rect, style: u32, menu: Bool) -> Bool #foreign user32 "AdjustWindowRect";