Solved

Gray a Scrollbar

Posted on 1998-07-22
3
417 Views
Last Modified: 2013-11-20
I'm using CScrollView and would like the scrollbar gray out instead of hiding when the displayed picture is smaller than the Window that displays it (no scrolling required). But how do I do that?
0
Comment
Question by:Mr_Bean
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 8

Accepted Solution

by:
gelbert earned 50 total points
ID: 1319567
Try next:
Get handle of the scroll bar and call EnableWindow( hScrollBar, FALSE ).
0
 
LVL 8

Expert Comment

by:gelbert
ID: 1319568
I mean it to be a comments, not answer
0
 

Author Comment

by:Mr_Bean
ID: 1319569
I solved the problem myself:

EnableScrollBar( SB_HORZ, ESB_DISABLE_BOTH );
(only wanted the Horizontal scroll to be grayed)

But thanks for the effort!
0

Featured Post

Enroll in July's Course of the Month

July's Course of the Month is now available! Enroll to learn HTML5 and prepare for certification. It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question