Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_WindowWin32.cpp
| Show First 20 Lines • Show All 622 Lines • ▼ Show 20 Lines | case GHOST_kWindowStateEmbedded: | ||||
| newstyle = WS_CHILD; | newstyle = WS_CHILD; | ||||
| break; | break; | ||||
| case GHOST_kWindowStateNormal: | case GHOST_kWindowStateNormal: | ||||
| default: | default: | ||||
| wp.showCmd = SW_SHOWNORMAL; | wp.showCmd = SW_SHOWNORMAL; | ||||
| newstyle = WS_OVERLAPPEDWINDOW; | newstyle = WS_OVERLAPPEDWINDOW; | ||||
| break; | break; | ||||
| } | } | ||||
| if ((newstyle >= 0) && !isDialog()) { | if (newstyle >= 0) { | ||||
| ::SetWindowLongPtr(m_hWnd, GWL_STYLE, newstyle); | ::SetWindowLongPtr(m_hWnd, GWL_STYLE, newstyle); | ||||
| } | } | ||||
| /* Clears window cache for SetWindowLongPtr */ | /* Clears window cache for SetWindowLongPtr */ | ||||
| ::SetWindowPos(m_hWnd, 0, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_FRAMECHANGED); | ::SetWindowPos(m_hWnd, 0, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_FRAMECHANGED); | ||||
| return ::SetWindowPlacement(m_hWnd, &wp) == TRUE ? GHOST_kSuccess : GHOST_kFailure; | return ::SetWindowPlacement(m_hWnd, &wp) == TRUE ? GHOST_kSuccess : GHOST_kFailure; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 715 Lines • Show Last 20 Lines | |||||