| 1183 | } |
| 1184 | |
| 1185 | void 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 | |
| 1196 | void CRenderEngine::DrawRoundRect(HDC hDC, const RECT& rc, int nSize, int width, int height, DWORD dwPenColor) |
| 1197 | { |
nothing calls this directly
no outgoing calls
no test coverage detected