- Timestamp:
- 01/11/08 15:02:08 (9 months ago)
- Files:
-
- 1 modified
-
trunk/src/buzelib/Utils/plur.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/buzelib/Utils/plur.cpp
r1273 r1345 114 114 void PlurManager::drawItem(LPDRAWITEMSTRUCT lpDrawItem, MachineMenuItem* item) { 115 115 116 CBrush bgBrush; 117 bgBrush.CreateSolidBrush(item->style->backgroundColor); 118 119 FillRect(lpDrawItem->hDC, &lpDrawItem->rcItem, bgBrush); 116 CMemDC dc(lpDrawItem->hDC, &lpDrawItem->rcItem); 117 118 dc.FillSolidRect(&lpDrawItem->rcItem, item->style->backgroundColor); 120 119 121 120 if (item->bitmap != 0) { … … 123 122 memDC.CreateCompatibleDC(0); 124 123 CBitmapHandle bmh = memDC.SelectBitmap(item->bitmap); 125 BitBlt(lpDrawItem->hDC,lpDrawItem->rcItem.left, lpDrawItem->rcItem.top, lpDrawItem->rcItem.right-lpDrawItem->rcItem.left, lpDrawItem->rcItem.bottom-lpDrawItem->rcItem.top, memDC, 0, 0, SRCCOPY);124 dc.BitBlt(lpDrawItem->rcItem.left, lpDrawItem->rcItem.top, lpDrawItem->rcItem.right-lpDrawItem->rcItem.left, lpDrawItem->rcItem.bottom-lpDrawItem->rcItem.top, memDC, 0, 0, SRCCOPY); 126 125 memDC.SelectBitmap(bmh); 127 126 } … … 135 134 rc.bottom -= item->style->textTop; 136 135 137 CDCHandle dc(lpDrawItem->hDC);138 136 CFontHandle prevFont = dc.SelectFont(item->style->font); 139 137 dc.SetBkMode(TRANSPARENT);
