Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_WindowWin32.cpp
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| HWND hWndInsertAfter, hWndToRaise; | HWND hWndInsertAfter, hWndToRaise; | ||||
| if (order == GHOST_kWindowOrderBottom) { | if (order == GHOST_kWindowOrderBottom) { | ||||
| hWndInsertAfter = HWND_BOTTOM; | hWndInsertAfter = HWND_BOTTOM; | ||||
| hWndToRaise = ::GetWindow(m_hWnd, GW_HWNDNEXT); /* the window to raise */ | hWndToRaise = ::GetWindow(m_hWnd, GW_HWNDNEXT); /* the window to raise */ | ||||
| } | } | ||||
| else { | else { | ||||
| if (getState() == GHOST_kWindowStateMinimized) { | |||||
| setState(GHOST_kWindowStateNormal); | |||||
| } | |||||
| hWndInsertAfter = HWND_TOP; | hWndInsertAfter = HWND_TOP; | ||||
| hWndToRaise = NULL; | hWndToRaise = NULL; | ||||
| } | } | ||||
| if (::SetWindowPos(m_hWnd, hWndInsertAfter, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE) == FALSE) { | if (::SetWindowPos(m_hWnd, hWndInsertAfter, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE) == FALSE) { | ||||
| return GHOST_kFailure; | return GHOST_kFailure; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines | |||||