Lines Matching refs:pDI

4915         DRAWITEMSTRUCT *pDI = (LPDRAWITEMSTRUCT) lParam;  in ImplDrawItem()  local
4916 if( pDI->CtlType != ODT_MENU ) in ImplDrawItem()
4919 WinSalMenuItem *pSalMenuItem = (WinSalMenuItem *) pDI->itemData; in ImplDrawItem()
4926 sal_Bool fChecked = (pDI->itemState & ODS_CHECKED) ? TRUE : FALSE; in ImplDrawItem()
4927 sal_Bool fSelected = (pDI->itemState & ODS_SELECTED) ? TRUE : FALSE; in ImplDrawItem()
4928 sal_Bool fDisabled = (pDI->itemState & (ODS_DISABLED | ODS_GRAYED)) ? TRUE : FALSE; in ImplDrawItem()
4931 RECT aRect = pDI->rcItem; in ImplDrawItem()
4933 clrPrevBkgnd = SetBkColor( pDI->hDC, GetSysColor( COLOR_MENU ) ); in ImplDrawItem()
4936 clrPrevText = SetTextColor( pDI->hDC, GetSysColor( COLOR_GRAYTEXT ) ); in ImplDrawItem()
4938 …clrPrevText = SetTextColor( pDI->hDC, GetSysColor( fSelected ? COLOR_HIGHLIGHTTEXT : COLOR_MENUTEX… in ImplDrawItem()
4942 clrPrevBkgnd = SetBkColor( pDI->hDC, colBackground ); in ImplDrawItem()
4944 clrPrevBkgnd = SetBkColor( pDI->hDC, colBackground ); in ImplDrawItem()
4946 hbrOld = (HBRUSH)SelectObject( pDI->hDC, CreateSolidBrush( GetBkColor( pDI->hDC ) ) ); in ImplDrawItem()
4949 …if(!PatBlt( pDI->hDC, aRect.left, aRect.top, aRect.right-aRect.left, aRect.bottom-aRect.top, PATCO… in ImplDrawItem()
4966 HDC memDC = CreateCompatibleDC( pDI->hDC ); in ImplDrawItem()
4967 HBITMAP memBmp = CreateCompatibleBitmap( pDI->hDC, checkWidth, checkHeight ); in ImplDrawItem()
4970 … BitBlt( pDI->hDC, x, y+(lineHeight-checkHeight)/2, checkWidth, checkHeight, memDC, 0, 0, SRCAND ); in ImplDrawItem()
4998 … HBITMAP hBmp = CreateDIBitmap( pDI->hDC, pBIH, CBM_INIT, pBits, pBI, DIB_RGB_COLORS ); in ImplDrawItem()
5002 DrawStateW( pDI->hDC, (HBRUSH)hbrIcon, (DRAWSTATEPROC)NULL, (LPARAM)hBmp, (WPARAM)0, in ImplDrawItem()
5023 hfntOld = (HFONT) SelectObject(pDI->hDC, (HFONT) CreateFontIndirect( &ncm.lfMenuFont )); in ImplDrawItem()
5027 GetTextExtentPoint32W( pDI->hDC, (LPWSTR) aStr.GetBuffer(), in ImplDrawItem()
5030 if(!DrawStateW( pDI->hDC, (HBRUSH)NULL, (DRAWSTATEPROC)NULL, in ImplDrawItem()
5040 GetTextExtentPoint32W( pDI->hDC, (LPWSTR) aStr.GetBuffer(), in ImplDrawItem()
5043 GetTextMetrics( pDI->hDC, &tm ); in ImplDrawItem()
5047 if(!DrawStateW( pDI->hDC, (HBRUSH)NULL, (DRAWSTATEPROC)NULL, in ImplDrawItem()
5055 DeleteObject( SelectObject( pDI->hDC, hbrOld ) ); in ImplDrawItem()
5056 DeleteObject( SelectObject( pDI->hDC, hfntOld) ); in ImplDrawItem()
5057 SetTextColor(pDI->hDC, clrPrevText); in ImplDrawItem()
5058 SetBkColor(pDI->hDC, clrPrevBkgnd); in ImplDrawItem()