-
July 2nd, 2004, 07:22 AM
#1
ScrollBar 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.
-
July 2nd, 2004, 01:04 PM
#2
Where are you calling functions from?
What styles did you set for static control?
Is there any particular reason using static control?
There are only 10 types of people in the world:
Those who understand binary and those who do not.
-
July 4th, 2004, 11:28 PM
#3
I try to set a scrollbar in PreSubclassWindow() window and OnPaint() but a result was equal.
CStatic has a SS_NOTIFY style
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|