Solved

How can I Owner drawn ScrollBar?

Posted on 2001-06-14
3
342 Views
Last Modified: 2013-11-20
I need Change scroll bar appearance. PLS HELP ME!
0
Comment
Question by:xialm
3 Comments
 
LVL 42

Expert Comment

by:sedgwick
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 50 total points
ID: 6190963
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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: 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.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

760 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now