From e0b9c4a275be8ad16cac03fea65638ea8a1cec03 Mon Sep 17 00:00:00 2001 From: Mikkel Hjortshoej Date: Thu, 1 Jun 2017 00:05:33 +0200 Subject: [PATCH] Added extra sys/windows.odin stuff - Added PM_NOREMOVE - Added PM_NOYIELD - Added get_message_a - Added post_message_a --- core/sys/windows.odin | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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";