Lines Matching refs:pDI

4918         DRAWITEMSTRUCT *pDI = (LPDRAWITEMSTRUCT) lParam;  in ImplDrawItem()  local
4919 if( pDI->CtlType != ODT_MENU ) in ImplDrawItem()
4922 WinSalMenuItem *pSalMenuItem = (WinSalMenuItem *) pDI->itemData; in ImplDrawItem()
4929 sal_Bool fChecked = (pDI->itemState & ODS_CHECKED) ? TRUE : FALSE; in ImplDrawItem()
4930 sal_Bool fSelected = (pDI->itemState & ODS_SELECTED) ? TRUE : FALSE; in ImplDrawItem()
4931 sal_Bool fDisabled = (pDI->itemState & (ODS_DISABLED | ODS_GRAYED)) ? TRUE : FALSE; in ImplDrawItem()
4934 RECT aRect = pDI->rcItem; in ImplDrawItem()
4936 clrPrevBkgnd = SetBkColor( pDI->hDC, GetSysColor( COLOR_MENU ) ); in ImplDrawItem()
4939 clrPrevText = SetTextColor( pDI->hDC, GetSysColor( COLOR_GRAYTEXT ) ); in ImplDrawItem()
4941 …clrPrevText = SetTextColor( pDI->hDC, GetSysColor( fSelected ? COLOR_HIGHLIGHTTEXT : COLOR_MENUTEX… in ImplDrawItem()
4945 clrPrevBkgnd = SetBkColor( pDI->hDC, colBackground ); in ImplDrawItem()
4947 clrPrevBkgnd = SetBkColor( pDI->hDC, colBackground ); in ImplDrawItem()
4949 hbrOld = (HBRUSH)SelectObject( pDI->hDC, CreateSolidBrush( GetBkColor( pDI->hDC ) ) ); in ImplDrawItem()
4952 …if(!PatBlt( pDI->hDC, aRect.left, aRect.top, aRect.right-aRect.left, aRect.bottom-aRect.top, PATCO… in ImplDrawItem()
4969 HDC memDC = CreateCompatibleDC( pDI->hDC ); in ImplDrawItem()
4970 HBITMAP memBmp = CreateCompatibleBitmap( pDI->hDC, checkWidth, checkHeight ); in ImplDrawItem()
4973 … BitBlt( pDI->hDC, x, y+(lineHeight-checkHeight)/2, checkWidth, checkHeight, memDC, 0, 0, SRCAND ); in ImplDrawItem()
5001 … HBITMAP hBmp = CreateDIBitmap( pDI->hDC, pBIH, CBM_INIT, pBits, pBI, DIB_RGB_COLORS ); in ImplDrawItem()
5005 DrawStateW( pDI->hDC, (HBRUSH)hbrIcon, (DRAWSTATEPROC)NULL, (LPARAM)hBmp, (WPARAM)0, in ImplDrawItem()
5026 hfntOld = (HFONT) SelectObject(pDI->hDC, (HFONT) CreateFontIndirect( &ncm.lfMenuFont )); in ImplDrawItem()
5030 GetTextExtentPoint32W( pDI->hDC, (LPWSTR) aStr.GetBuffer(), in ImplDrawItem()
5033 if(!DrawStateW( pDI->hDC, (HBRUSH)NULL, (DRAWSTATEPROC)NULL, in ImplDrawItem()
5043 GetTextExtentPoint32W( pDI->hDC, (LPWSTR) aStr.GetBuffer(), in ImplDrawItem()
5046 GetTextMetrics( pDI->hDC, &tm ); in ImplDrawItem()
5050 if(!DrawStateW( pDI->hDC, (HBRUSH)NULL, (DRAWSTATEPROC)NULL, in ImplDrawItem()
5058 DeleteObject( SelectObject( pDI->hDC, hbrOld ) ); in ImplDrawItem()
5059 DeleteObject( SelectObject( pDI->hDC, hfntOld) ); in ImplDrawItem()
5060 SetTextColor(pDI->hDC, clrPrevText); in ImplDrawItem()
5061 SetBkColor(pDI->hDC, clrPrevBkgnd); in ImplDrawItem()