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

Method DrawRect

DuiLib/Core/UIRender.cpp:1185–1194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1183}
1184
1185void CRenderEngine::DrawRect(HDC hDC, const RECT& rc, int nSize, DWORD dwPenColor)
1186{
1187 ASSERT(::GetObjectType(hDC)==OBJ_DC || ::GetObjectType(hDC)==OBJ_MEMDC);
1188 HPEN hPen = ::CreatePen(PS_SOLID | PS_INSIDEFRAME, nSize, RGB(GetBValue(dwPenColor), GetGValue(dwPenColor), GetRValue(dwPenColor)));
1189 HPEN hOldPen = (HPEN)::SelectObject(hDC, hPen);
1190 ::SelectObject(hDC, ::GetStockObject(HOLLOW_BRUSH));
1191 ::Rectangle(hDC, rc.left, rc.top, rc.right, rc.bottom);
1192 ::SelectObject(hDC, hOldPen);
1193 ::DeleteObject(hPen);
1194}
1195
1196void CRenderEngine::DrawRoundRect(HDC hDC, const RECT& rc, int nSize, int width, int height, DWORD dwPenColor)
1197{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected