]>
Commit | Line | Data |
---|---|---|
ff7c6d11 XL |
1 | // Licensed under the Apache License, Version 2.0 |
2 | // <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license | |
3 | // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option. | |
4 | // All files in the project carrying such notice may not be copied, modified, or distributed | |
5 | // except according to those terms. | |
6 | //! Macro APIs, window message crackers, and control APIs | |
7 | use ctypes::{c_int, c_short}; | |
8 | use shared::minwindef::{DWORD, HIWORD, LOWORD, LPARAM}; | |
9 | //1233 | |
10 | #[inline] | |
11 | pub fn GET_X_LPARAM(lp: LPARAM) -> c_int { | |
12 | LOWORD(lp as DWORD) as c_short as c_int | |
13 | } | |
14 | #[inline] | |
15 | pub fn GET_Y_LPARAM(lp: LPARAM) -> c_int { | |
16 | HIWORD(lp as DWORD) as c_short as c_int | |
17 | } |