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

Method DrawRoundRect

DuiLib/Core/UIRender.cpp:1196–1205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1194}
1195
1196void CRenderEngine::DrawRoundRect(HDC hDC, const RECT& rc, int nSize, int width, int height, DWORD dwPenColor)
1197{
1198 ASSERT(::GetObjectType(hDC)==OBJ_DC || ::GetObjectType(hDC)==OBJ_MEMDC);
1199 HPEN hPen = ::CreatePen(PS_SOLID | PS_INSIDEFRAME, nSize, RGB(GetBValue(dwPenColor), GetGValue(dwPenColor), GetRValue(dwPenColor)));
1200 HPEN hOldPen = (HPEN)::SelectObject(hDC, hPen);
1201 ::SelectObject(hDC, ::GetStockObject(HOLLOW_BRUSH));
1202 ::RoundRect(hDC, rc.left, rc.top, rc.right, rc.bottom, width, height);
1203 ::SelectObject(hDC, hOldPen);
1204 ::DeleteObject(hPen);
1205}
1206
1207void CRenderEngine::DrawText(HDC hDC, CPaintManagerUI* pManager, RECT& rc, LPCTSTR pstrText, DWORD dwTextColor, int iFont, UINT uStyle)
1208{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected