?
Solved

CListCtrl Scrollpos

Posted on 2002-04-26
3
Medium Priority
?
976 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
  • 2
3 Comments
 
LVL 12

Accepted Solution

by:
migel earned 200 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …

750 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