CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2001
    Posts
    8

    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.

  2. #2
    Join Date
    May 1999
    Location
    DELAWARE, USA
    Posts
    9,913
    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.

  3. #3
    Join Date
    Jul 2001
    Posts
    8
    I try to set a scrollbar in PreSubclassWindow() window and OnPaint() but a result was equal.

    CStatic has a SS_NOTIFY style

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts



HTML5 Development Center

Click Here to Expand Forum to Full Width