Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

CListCtrl Scrollpos

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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 a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

618 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