Re: Drawing trackbar thumbs

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi AliR,

Thanks for your reply and your effort. Unfortunately, I am creating my own control using CWnd and I only want to draw the thumb control from the slider (the triangle pointer thingy).

I already use DrawThemeBackground with the TKP_THUMBTOP part to draw the XP version of the thumb, but this doesn't work on non-XP platforms. So I'd hope DrawFrameControl would do it.

Any suggestions?

Thanks again,
Andy



AliR wrote:
The CSliderCtrl give you adequate functionality when it comes to tick marks
(if that is what you are talking about).
You have SetTickFreq(..) and SetTick(..)

Or do you want to draw your own tick marks?
Take a look at these examples

http://www.codeproject.com/miscctrl/csliderctrlex.asp
http://www.codeproject.com/miscctrl/CustomDrawCSliderCtrl.asp

both are very good articles.

AliR.

"Andy Tang" <Andy_Tang2k@xxxxxxxxxxxxxxxxxx> wrote in message
news:N3c7e.1$443.0@xxxxxxxxxxxxxxxxxxxxxxx

Hi,

Does anyone know how to draw the thumb of a trackbar control (pointed
arrow thumb of a slider) easily? I had a look at DrawFrameControl but it
looks like it only draw buttons, captions, menus and scrollbar.

Thanks all



.


Quantcast