?
Solved

how to get handle of scrollbar in CListCtrl of MFC

Posted on 2003-03-31
3
Medium Priority
?
535 Views
Last Modified: 2013-11-20
I want to draw the scrollbar of listctrl custom .but i can not get the handle...
0
Comment
Question by:cdzhd
[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
 

Author Comment

by:cdzhd
ID: 8243019
fasfsf
0
 
LVL 11

Accepted Solution

by:
KurtVon earned 150 total points
ID: 8246808
You can't get the handle because there isn't one.  It's a fake scroll bar drawn by the list control.

You can override it a bit by descending from CListBox and overriding OnNcPaint.  Unfortunately, some of the scrollbar will get called directly from some scrollbar internal functions.

Try this address for more on the subject (I think what you want to do is covered there):  http://www.codeproject.com/combobox/listboxex.asp
0
 
LVL 11

Expert Comment

by:KurtVon
ID: 8246816
Er, that is "some of the scrollbar *drawing code* will get called directly from some *listbox* internal functions."
0

Featured Post

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

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.
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

741 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