Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Gray a Scrollbar

Posted on 1998-07-22
3
Medium Priority
?
424 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 100 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

670 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