Jump to content
  • Advertisement


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


How to draw a Thumb

This topic is 6120 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

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!