| 1205 | } |
| 1206 | |
| 1207 | void CRenderEngine::DrawText(HDC hDC, CPaintManagerUI* pManager, RECT& rc, LPCTSTR pstrText, DWORD dwTextColor, int iFont, UINT uStyle) |
| 1208 | { |
| 1209 | ASSERT(::GetObjectType(hDC)==OBJ_DC || ::GetObjectType(hDC)==OBJ_MEMDC); |
| 1210 | if( pstrText == NULL || pManager == NULL ) return; |
| 1211 | ::SetBkMode(hDC, TRANSPARENT); |
| 1212 | ::SetTextColor(hDC, RGB(GetBValue(dwTextColor), GetGValue(dwTextColor), GetRValue(dwTextColor))); |
| 1213 | HFONT hOldFont = (HFONT)::SelectObject(hDC, pManager->GetFont(iFont)); |
| 1214 | ::DrawText(hDC, pstrText, -1, &rc, uStyle | DT_NOPREFIX); |
| 1215 | ::SelectObject(hDC, hOldFont); |
| 1216 | } |
| 1217 | |
| 1218 | void CRenderEngine::DrawHtmlText(HDC hDC, CPaintManagerUI* pManager, RECT& rc, LPCTSTR pstrText, DWORD dwTextColor, RECT* prcLinks, CDuiString* sLinks, int& nLinkRects, UINT uStyle) |
| 1219 | { |