| 2583 | } |
| 2584 | |
| 2585 | void ProcessItem(LRESULT lResCustom, LPNMCTCCUSTOMDRAW lpNMCustomDraw) |
| 2586 | { |
| 2587 | LRESULT lResItem = CDRF_DODEFAULT; |
| 2588 | if( CDRF_NOTIFYITEMDRAW == (lResCustom & CDRF_NOTIFYITEMDRAW) ) |
| 2589 | { |
| 2590 | lpNMCustomDraw->nmcd.dwDrawStage = CDDS_ITEMPREPAINT; |
| 2591 | lResItem = ::SendMessage(GetParent(), WM_NOTIFY, lpNMCustomDraw->nmcd.hdr.idFrom, (LPARAM)lpNMCustomDraw); |
| 2592 | } |
| 2593 | if( CDRF_SKIPDEFAULT != (lResCustom & CDRF_SKIPDEFAULT) ) |
| 2594 | { |
| 2595 | // Do default item-drawing |
| 2596 | T* pT = static_cast<T*>(this); |
| 2597 | pT->DoItemPaint(lpNMCustomDraw); |
| 2598 | } |
| 2599 | if( CDRF_NOTIFYITEMDRAW == (lResCustom & CDRF_NOTIFYITEMDRAW) && |
| 2600 | CDRF_NOTIFYPOSTPAINT == (lResItem & CDRF_NOTIFYPOSTPAINT)) |
| 2601 | { |
| 2602 | lpNMCustomDraw->nmcd.dwDrawStage = CDDS_ITEMPOSTPAINT; |
| 2603 | ::SendMessage(GetParent(), WM_NOTIFY, lpNMCustomDraw->nmcd.hdr.idFrom, (LPARAM)lpNMCustomDraw); |
| 2604 | } |
| 2605 | } |
| 2606 | |
| 2607 | void InitializeDrawStruct(LPNMCTCCUSTOMDRAW lpNMCustomDraw) |
| 2608 | { |
nothing calls this directly
no test coverage detected