?
Solved

CListCtrl Scrollpos

Posted on 2002-04-26
3
Medium Priority
?
958 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 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
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.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses
Course of the Month14 days, 1 hour left to enroll

800 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