MCPcopy Create free account
hub / github.com/cinience/RedisStudio / OnSize

Method OnSize

DuiLib/Utils/WinImplBase.cpp:214–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212#endif
213
214LRESULT 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
232LRESULT WindowImplBase::OnChar(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
233{

Callers

nothing calls this directly

Calls 2

GetRoundCornerMethod · 0.80
OffsetMethod · 0.45

Tested by

no test coverage detected