Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Pane and CXTListCtrl
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Pane and CXTListCtrl

 Post Reply Post Reply
Author
Message
Atlantis View Drop Down
Newbie
Newbie
Avatar

Joined: 21 April 2005
Location: Russian Federation
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote Atlantis Quote  Post ReplyReply Direct Link To This Post Topic: Pane and CXTListCtrl
    Posted: 21 April 2005 at 2:47am

Hi, I'm using your PaneOptions Demo as a skeleton for a new application. I use a

XPTListCtrl , and have the problem that I'am not

able to use the vertical scroller. Its always grayed out, if the content of the Ctrl is

larger as the viewable space.

And i'am add checkboxes to this list. And if  i add imagelist with large icon or bitmaps the checkboxes align to the bottom. How it's align to the middle or center.

Thank you for your help



Edited by Atlantis
Back to Top
jwhagen View Drop Down
Groupie
Groupie
Avatar

Joined: 09 May 2003
Location: United States
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote jwhagen Quote  Post ReplyReply Direct Link To This Post Posted: 22 April 2005 at 6:41am
I have the same problem with my application. I have found that if I click where the top and bottom arrows aof the scrollbar are supposed to be located, they show up and then stay in view. It's weird... However, I do not have a solution either.
Back to Top
jwhagen View Drop Down
Groupie
Groupie
Avatar

Joined: 09 May 2003
Location: United States
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote jwhagen Quote  Post ReplyReply Direct Link To This Post Posted: 28 April 2005 at 4:19pm

I found that if you initialize the list control with data, the scroll bar appears and works as you would expect. Put the following code at the end of your InitListControl() function.

// Makes the vertical scroll bar display with the arrows.
 int    iItem;
 CString    strItem;
 for (iItem = 0; iItem < 25; ++iItem) {
  strItem.Format(_T(""));
  m_pListCtrl.InsertItem(iItem, strItem, 0);
 }

You may need to change the 25 to a higher value. Represents the number of rows to initialize. If this doesn't work, change 25 to 200 and test it again.

John



Edited by jwhagen
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.