Implement get_position for win32 and fix interface
This commit is contained in:
parent
14a697b272
commit
1f0999e6a0
5 changed files with 31 additions and 7 deletions
|
|
@ -552,6 +552,17 @@ pub struct DEVMODE {
|
|||
pub dmPanningHeight: DWORD,
|
||||
}
|
||||
|
||||
// http://msdn.microsoft.com/en-us/library/windows/desktop/ms632611(v=vs.85).aspx
|
||||
#[repr(C)]
|
||||
pub struct WINDOWPLACEMENT {
|
||||
pub length: UINT,
|
||||
pub flags: UINT,
|
||||
pub showCmd: UINT,
|
||||
pub ptMinPosition: POINT,
|
||||
pub ptMaxPosition: POINT,
|
||||
pub rcNormalPosition: RECT,
|
||||
}
|
||||
|
||||
pub type LPMSG = *mut MSG;
|
||||
|
||||
#[link(name = "advapi32")]
|
||||
|
|
@ -621,6 +632,9 @@ extern "system" {
|
|||
// http://msdn.microsoft.com/en-us/library/windows/desktop/ms683212(v=vs.85).aspx
|
||||
pub fn GetProcAddress(hModule: HMODULE, lpProcName: LPCSTR) -> *const libc::c_void;
|
||||
|
||||
// http://msdn.microsoft.com/en-us/library/windows/desktop/ms633518(v=vs.85).aspx
|
||||
pub fn GetWindowPlacement(hWnd: HWND, lpwndpl: *mut WINDOWPLACEMENT) -> BOOL;
|
||||
|
||||
// http://msdn.microsoft.com/en-us/library/windows/desktop/ms633519(v=vs.85).aspx
|
||||
pub fn GetWindowRect(hWnd: HWND, lpRect: *mut RECT) -> BOOL;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue