Autor Tema: [SRC ]TrackBar  (Leído 2483 veces)

0 Usuarios y 1 Visitante están viendo este tema.

polosa

  • Bytes
  • *
  • Mensajes: 14
  • Reputación: +0/-0
    • Ver Perfil
[SRC ]TrackBar
« en: Enero 04, 2011, 08:01:18 am »
http://FileDeck.net/zh-tw/files/1IFWWFWQ/clsTrackBar.zip


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

http://www.cnblogs.com/songsu/articles/1268066.html
http://read.pudn.com/downloads38/sourcecode/windows/129105/MacSliderCtrl.cpp__.htm
http://www.codeproject.com/KB/static/CBitmapSlider.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

raul338

  • Terabyte
  • *****
  • Mensajes: 894
  • Reputación: +62/-8
  • xD fan!!!!! xD
    • Ver Perfil
    • Raul's Weblog
Re:[SRC ]TrackBar
« Respuesta #1 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: