Lines Matching defs:nmcd
2477 static RECT GetCustomDrawnItemRect(const NMCUSTOMDRAW& nmcd)
2480 ListView_GetItemRect(nmcd.hdr.hwndFrom, nmcd.dwItemSpec, &rc, LVIR_BOUNDS);
2483 ListView_GetItemRect(nmcd.hdr.hwndFrom, nmcd.dwItemSpec, &rcIcon, LVIR_ICON);
2501 NMCUSTOMDRAW& nmcd = pLVCD->nmcd;
2503 HDC hdc = nmcd.hdc;
2504 HWND hwndList = nmcd.hdr.hwndFrom;
2506 const DWORD item = nmcd.dwItemSpec;
2546 nmcd.uItemState & CDIS_SELECTED ? ILD_SELECTED
2599 static void HandleItemPostpaint(NMCUSTOMDRAW nmcd)
2601 if ( nmcd.uItemState & CDIS_FOCUS )
2603 RECT rc = GetCustomDrawnItemRect(nmcd);
2606 ::DrawFocusRect(WindowHDC(nmcd.hdr.hwndFrom), &rc);
2613 NMCUSTOMDRAW& nmcd = pLVCD->nmcd; // just a shortcut
2615 const HWND hwndList = nmcd.hdr.hwndFrom;
2616 const int item = nmcd.dwItemSpec;
2628 nmcd.uItemState &= ~CDIS_SELECTED;
2634 nmcd.uItemState |= CDIS_SELECTED;
2643 nmcd.uItemState |= CDIS_FOCUS;
2647 nmcd.uItemState &= ~CDIS_FOCUS;
2650 if ( nmcd.uItemState & CDIS_SELECTED )
2664 nmcd.uItemState &= ~CDIS_SELECTED;
2672 HDC hdc = nmcd.hdc;
2673 RECT rc = GetCustomDrawnItemRect(nmcd);
2687 HandleItemPostpaint(nmcd);
2723 ::SelectObject(pLVCD->nmcd.hdc, GetHfontOf(font));
2734 NMCUSTOMDRAW& nmcd = pLVCD->nmcd;
2735 switch ( nmcd.dwDrawStage )
2748 const int item = nmcd.dwItemSpec;