Visual Basic Foro

Programación => Visual Basic 6 => Mensaje iniciado por: polosa en Enero 04, 2011, 08:01:18 am

Título: [SRC ]TrackBar
Publicado por: polosa en Enero 04, 2011, 08:01:18 am
http://FileDeck.net/zh-tw/files/1IFWWFWQ/clsTrackBar.zip
(http://1.bp.blogspot.com/_I0-bB4QrisM/SgFrL4n2IoI/AAAAAAAAAII/2M_9NOZfeUU/s1600-h/image3.png)

We used to see
In addition to ask how to get there CustomDraw TrackBar function.

http://www.cnblogs.com/songsu/articles/1268066.html (http://www.cnblogs.com/songsu/articles/1268066.html)
http://read.pudn.com/downloads38/sourcecode/windows/129105/MacSliderCtrl.cpp__.htm (http://read.pudn.com/downloads38/sourcecode/windows/129105/MacSliderCtrl.cpp__.htm)
http://www.codeproject.com/KB/static/CBitmapSlider.aspx (http://www.codeproject.com/KB/static/CBitmapSlider.aspx)
http://www.codeproject.com/KB/progress/MediaSlider.aspx (http://www.codeproject.com/KB/progress/MediaSlider.aspx)

I only know that
     TBCD_TICS
     TBCD_THUMB
     TBCD_CHANNEL

case NM_CUSTOMDRAW:
lpDraw = (LPNMCUSTOMDRAW) lParam;
switch (lpDraw-> dwDrawStage) {
case CDDS_PREPAINT:
return CDRF_NOTIFYITEMDRAW;
case CDDS_ITEMPREPAINT:
switch (lpDraw-> dwItemSpec) {
case TBCD_CHANNEL:
....
return CDRF_SKIPDEFAULT;
case TBCD_THUMB:
....
return CDRF_SKIPDEFAULT;
}
break;
}
break;

And how to set WM_MOUSEWHEEL, I just click TrackBar, the mouse wheel to move the location will be different.

How can I make
Título: Re:[SRC ]TrackBar
Publicado por: raul338 en Enero 04, 2011, 03:18:59 pm
And how to set WM_MOUSEWHEEL, I just click TrackBar, the mouse wheel to move the location will be different.

I downloaded the control-class (I didn't like it too much xD) and tried it, It works the mouse wheel, I'm using windows 7

Btw the other code, i didn't understand what you want D: