diff options
Diffstat (limited to 'src/win32/mod.rs')
-rw-r--r-- | src/win32/mod.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/win32/mod.rs b/src/win32/mod.rs index be6014e..481436c 100644 --- a/src/win32/mod.rs +++ b/src/win32/mod.rs @@ -299,6 +299,14 @@ extern "stdcall" fn callback(window: ffi::HWND, msg: ffi::UINT, 0 }, + ffi::WM_MOVE => { + use events::Moved; + let x = ffi::LOWORD(lparam as ffi::DWORD) as uint; + let y = ffi::HIWORD(lparam as ffi::DWORD) as uint; + send_event(window, Moved(x, y)); + 0 + }, + ffi::WM_CHAR => { use std::mem; use events::ReceivedCharacter; |