TBS_DOWNISLEFT, Tracker control
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
I'm trying to setup a tracker control so that the top if the max, and the bottom is the min. It makes sense then to use TBS_DOWNISLEFT style, so I use that when creating the window. But it doesn't work (On Win2k). No matter, the top if always 0 and the bottom is always the max, with or without the flag. What's going on here?? HWND hSlider; if (!(hSlider=CreateWindowEx(0,TRACKBAR_CLASS,"",TBS_DOWNISLEFT | TBS_VERT | TBS_NOTICKS | WS_VISIBLE | WS_CHILD,0,0,30,200,hWnd,(HMENU)1,hInst,0))) return -1; SendMessage(hSlider,TBM_SETRANGEMIN,0,0); SendMessage(hSlider,TBM_SETRANGEMAX,0,100); SendMessage(hSlider,TBM_SETPOS,1,50);