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

    Autohide window scroll bars

    Hi,

    I am using WS_VSCROLL to set a vertical scroll bar on a window by using SetWindowLong() function. I have a bunch of item like textfields whose contents grow and shrink.

    The problem is the window scroll bars always appear even though they are not necessary.

    Is there anyway to using a style like AUTOSCROLL without doing it programmitically.


    Thanks.

  2. #2
    Join Date
    Jul 2001
    Location
    Netherlands
    Posts
    751

    Re: Autohide window scroll bars

    You can just add ES_AUTOSCROLL to the styles for the control in the resourcefile

  3. #3
    Join Date
    Jul 2008
    Posts
    2

    Re: Autohide window scroll bars

    Thanks for the reply.

    But ES_AUTOVSCROLL is for one Edit control.
    But , I have several controls text fields etc. on the window. The scroll bar lets the user scroll down/up and view the controls.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured