Archived

This topic is now archived and is closed to further replies.

Maxb55

How to draw a Thumb

Recommended Posts

I''m trying to draw the tumb in a Trackbar . But the Image always appears on the back of the Trackbar.Here is the code I use . case WM_NOTIFY:{ LPNMLISTVIEW pnm = (LPNMLISTVIEW)lParam; LPNMCUSTOMDRAW lpTrack = (LPNMCUSTOMDRAW)lParam; if(wParam == ID_TRACKBAR){ if(lpTrack->hdr.code == 4294967284){ if(lpTrack->dwDrawStage == CDDS_PREPAINT) return CDRF_NOTIFYITEMDRAW; if(lpTrack->dwDrawStage == CDDS_ITEM | CDDS_PREPAINT){ if(lpTrack->dwItemSpec == TBCD_THUMB) BitBlt(lpTrack->hdc,0,0,20,20,hMemDC,0,0,SRCCOPY); } } } }

Share this post


Link to post
Share on other sites