Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_WindowWin32.cpp
| Context not available. | |||||
| { | { | ||||
| RECT rect; | RECT rect; | ||||
| POINT coord; | POINT coord; | ||||
| ::GetClientRect(m_hWnd, &rect); | if (!IsIconic(m_hWnd)) { | ||||
| ::GetClientRect(m_hWnd, &rect); | |||||
| coord.x = rect.left; | coord.x = rect.left; | ||||
| coord.y = rect.top; | coord.y = rect.top; | ||||
| ::ClientToScreen(m_hWnd, &coord); | ::ClientToScreen(m_hWnd, &coord); | ||||
| bounds.m_l = coord.x; | bounds.m_l = coord.x; | ||||
| bounds.m_t = coord.y; | bounds.m_t = coord.y; | ||||
| coord.x = rect.right; | coord.x = rect.right; | ||||
| coord.y = rect.bottom; | coord.y = rect.bottom; | ||||
| ::ClientToScreen(m_hWnd, &coord); | ::ClientToScreen(m_hWnd, &coord); | ||||
| bounds.m_r = coord.x; | bounds.m_r = coord.x; | ||||
| bounds.m_b = coord.y; | bounds.m_b = coord.y; | ||||
| } | |||||
| else { | |||||
| bounds.m_b = 0; | |||||
| bounds.m_l = 0; | |||||
| bounds.m_r = 0; | |||||
| bounds.m_t = 0; | |||||
| } | |||||
| } | } | ||||
| Context not available. | |||||