| 212 | #endif |
| 213 | |
| 214 | LRESULT WindowImplBase::OnSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled) |
| 215 | { |
| 216 | SIZE szRoundCorner = m_PaintManager.GetRoundCorner(); |
| 217 | #if defined(WIN32) && !defined(UNDER_CE) |
| 218 | if( !::IsIconic(*this) && (szRoundCorner.cx != 0 || szRoundCorner.cy != 0) ) { |
| 219 | CDuiRect rcWnd; |
| 220 | ::GetWindowRect(*this, &rcWnd); |
| 221 | rcWnd.Offset(-rcWnd.left, -rcWnd.top); |
| 222 | rcWnd.right++; rcWnd.bottom++; |
| 223 | HRGN hRgn = ::CreateRoundRectRgn(rcWnd.left, rcWnd.top, rcWnd.right, rcWnd.bottom, szRoundCorner.cx, szRoundCorner.cy); |
| 224 | ::SetWindowRgn(*this, hRgn, TRUE); |
| 225 | ::DeleteObject(hRgn); |
| 226 | } |
| 227 | #endif |
| 228 | bHandled = FALSE; |
| 229 | return 0; |
| 230 | } |
| 231 | |
| 232 | LRESULT WindowImplBase::OnChar(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled) |
| 233 | { |
nothing calls this directly
no test coverage detected