Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 545
  • Last Modified:

how to get handle of scrollbar in CListCtrl of MFC

I want to draw the scrollbar of listctrl custom .but i can not get the handle...
0
cdzhd
Asked:
cdzhd
  • 2
1 Solution
 
cdzhdAuthor Commented:
fasfsf
0
 
KurtVonCommented:
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
 
KurtVonCommented:
Er, that is "some of the scrollbar *drawing code* will get called directly from some *listbox* internal functions."
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now