Solved

CListCtrl Scrollpos

Posted on 2002-04-26
3
931 Views
Last Modified: 2013-11-20
I'm having a problem with CListCtrl. The thing is that GetScrollBarCtrl member function returns NULL and I have no way to determine the horizontal scollposition. Is there anybody here that can help me out?
0
Comment
Question by:huxun
[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 12

Accepted Solution

by:
migel earned 100 total points
ID: 6972909
Hi!
GetScrollBarCtrl will always return NULL for such controls since they use "WINDOW style" scrollbars, not native controls.
Try use m_wndMyListControl.GetScrollPos(SB_HORZ);
where m_wndMyListControl is your listcontrol.
0
 

Author Comment

by:huxun
ID: 6973131
Yeah ... that returns some strange numbers, at least it isn't pixels. I found out that using GetItemPosition works fine for me.

Don't know what to do with the points here. Any suggestions?
0
 
LVL 12

Expert Comment

by:migel
ID: 6975220
Hm...
50% ?
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Named range not carried over 10 66
sum13 challenge 24 134
wordmultiple challenge 12 156
JQuery serialize and unserialize 8 189
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.

749 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