Scroll bars in CStatic-derived class!!!
-
How to implement a scrollbar in CStatic-derived class. When I wrote:
EnableScrollBarCtrl(SB_HORZ);
SetScrollRange(SB_HORZ, 0, 100);
ShowScrollBar(SB_HORZ);I can see a scrool bar but I can't control it. WM_HSCROLL don't received too. What's a problem. How to implement it. Best regards, Eugene Pustovoyt
ICQ UIN: 161325180
-
How to implement a scrollbar in CStatic-derived class. When I wrote:
EnableScrollBarCtrl(SB_HORZ);
SetScrollRange(SB_HORZ, 0, 100);
ShowScrollBar(SB_HORZ);I can see a scrool bar but I can't control it. WM_HSCROLL don't received too. What's a problem. How to implement it. Best regards, Eugene Pustovoyt
ICQ UIN: 161325180
You might need to experiment with setting the notify-style and having an ID other than
IDC_STATIC
, but I would recommend that you use aCWnd
-derived class instead of aCStatic
instead.