Fix win32 window not closing when destroying it

This commit is contained in:
Tomaka17 2014-10-11 20:52:48 +02:00
parent 64bbc4965f
commit 9e9a3ae03a
2 changed files with 4 additions and 0 deletions

View file

@ -719,6 +719,9 @@ extern "system" {
pub fn PeekMessageW(lpMsg: *mut MSG, hWnd: HWND, wMsgFilterMin: UINT, wMsgFilterMax: UINT,
wRemoveMsg: UINT) -> BOOL;
// http://msdn.microsoft.com/en-us/library/windows/desktop/ms644944(v=vs.85).aspx
pub fn PostMessageW(hWnd: HWND, Msg: UINT, wParam: WPARAM, lParam: LPARAM) -> BOOL;
// http://msdn.microsoft.com/en-us/library/windows/desktop/ms644945(v=vs.85).aspx
pub fn PostQuitMessage(nExitCode: libc::c_int);