?
Solved

How can I Owner drawn ScrollBar?

Posted on 2001-06-14
3
Medium Priority
?
370 Views
Last Modified: 2013-11-20
I need Change scroll bar appearance. PLS HELP ME!
0
Comment
Question by:xialm
[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
3 Comments
 
LVL 42

Expert Comment

by:Meir Rivkin
ID: 6190573
create a CScrollBar derived class using the wizard and override WM_DRAWITEM of your CScrollBar class:

void CMyScrollBar::OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct)
{
//your code goes here
     
     CScrollBar::OnDrawItem(nIDCtl, lpDrawItemStruct);
}
0
 

Expert Comment

by:NickAtBOM
ID: 6190853
I agree with sedwick, although if you are completly drawing the scroll bar yourself, there is no need to call CScrollBar::OnDrawItem
0
 
LVL 30

Accepted Solution

by:
SteveGTR earned 100 total points
ID: 6190963
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

650 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