• Advertisement

Archived

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

How to draw a Thumb

This topic is 6004 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement

  • Advertisement