CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9
  1. #1

    how to change the background and foreground of CSliderCtrl

    how to change the background and foreground of CSliderCtrl like Winamp

  2. #2
    Join Date
    Apr 1999
    Posts
    3,585

    Re: how to change the background and foreground of CSliderCtrl

    Take a look at CSliderCtrlEx . It should give you some insight on how to do this.
    Gort...Klaatu, Barada Nikto!

  3. #3

    Re: how to change the background and foreground of CSliderCtrl

    sorry, I can not find the CSliderCtrlEx on my MSDN

  4. #4
    Join Date
    Apr 1999
    Posts
    3,585

    Re: how to change the background and foreground of CSliderCtrl

    You need to click the link I provided in the previous message.
    Gort...Klaatu, Barada Nikto!

  5. #5

    Re: how to change the background and foreground of CSliderCtrl

    ooooooooooh, i found it, thanks

  6. #6

    Re: how to change the background and foreground of CSliderCtrl

    i added the message of NM_CUSTOMDRAW in my class of CSliderButtom which inherit from CSliderCtrl, but i found the message did not happen.

    in the project which you provided, i found the message happend when parent window run to OnPaint;

    why?

  7. #7
    Join Date
    Apr 1999
    Posts
    3,585

    Re: how to change the background and foreground of CSliderCtrl

    Have you tried comparing the demo source that works with your code that does not?
    Gort...Klaatu, Barada Nikto!

  8. #8

    Re: how to change the background and foreground of CSliderCtrl

    i have solved, thanks

  9. #9

    Re: how to change the background and foreground of CSliderCtrl

    i can redraw background of the CSliderCtrl now,
    but i do not how to redraw the slider.
    Last edited by blacksource; October 19th, 2006 at 06:05 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured