Lines Matching refs:lpdis
118 static void OnDrawItem(HWND hwnd, LPDRAWITEMSTRUCT lpdis);
705 void OnDrawItem(HWND /*hwnd*/, LPDRAWITEMSTRUCT lpdis) in OnDrawItem() argument
707 MYITEM *pMyItem = (MYITEM *) lpdis->itemData; in OnDrawItem()
712 BOOL fSelected = lpdis->itemState & ODS_SELECTED; in OnDrawItem()
713 BOOL fDisabled = lpdis->itemState & (ODS_DISABLED | ODS_GRAYED); in OnDrawItem()
717 RECT aRect = lpdis->rcItem; in OnDrawItem()
719 clrPrevBkgnd = SetBkColor( lpdis->hDC, GetSysColor(COLOR_MENU) ); in OnDrawItem()
722 clrPrevText = SetTextColor( lpdis->hDC, GetSysColor( COLOR_GRAYTEXT ) ); in OnDrawItem()
724 …clrPrevText = SetTextColor( lpdis->hDC, GetSysColor( fSelected ? COLOR_HIGHLIGHTTEXT : COLOR_MENUT… in OnDrawItem()
727 clrPrevBkgnd = SetBkColor( lpdis->hDC, GetSysColor(COLOR_HIGHLIGHT) ); in OnDrawItem()
729 clrPrevBkgnd = SetBkColor( lpdis->hDC, GetSysColor(COLOR_MENU) ); in OnDrawItem()
731 hbrOld = (HBRUSH)SelectObject( lpdis->hDC, CreateSolidBrush( GetBkColor( lpdis->hDC ) ) ); in OnDrawItem()
734 …PatBlt(lpdis->hDC, aRect.left, aRect.top, aRect.right-aRect.left, aRect.bottom-aRect.top, PATCOPY); in OnDrawItem()
765 …DrawStateW( lpdis->hDC, (HBRUSH)hbrIcon, (DRAWSTATEPROC)NULL, (LPARAM)hIcon, (WPARAM)0, x, y+(heig… in OnDrawItem()
779 if ( lpdis->itemState & ODS_DEFAULT ) in OnDrawItem()
782 hfntOld = (HFONT) SelectObject(lpdis->hDC, (HFONT) CreateFontIndirect( &ncm.lfMenuFont )); in OnDrawItem()
786 …GetTextExtentPointW( lpdis->hDC, reinterpret_cast<LPCWSTR>(pMyItem->text.getStr()), pMyItem->text.… in OnDrawItem()
788 …DrawStateW( lpdis->hDC, (HBRUSH)NULL, (DRAWSTATEPROC)NULL, (LPARAM)pMyItem->text.getStr(), (WPARAM… in OnDrawItem()
791 DeleteObject( SelectObject( lpdis->hDC, hbrOld ) ); in OnDrawItem()
792 DeleteObject( SelectObject( lpdis->hDC, hfntOld) ); in OnDrawItem()
793 SetTextColor(lpdis->hDC, clrPrevText); in OnDrawItem()
794 SetBkColor(lpdis->hDC, clrPrevBkgnd); in OnDrawItem()