![]() |
CXTListBox Horizontal Scroll Problem |
Post Reply ![]() |
Author | |
AliRafiee ![]() Groupie ![]() Joined: 06 May 2004 Status: Offline Points: 32 |
![]() ![]() ![]() ![]() ![]() Posted: 09 September 2005 at 1:06pm |
I am trying to get CXTListBox to work correctly with Horizontal scroll. What I did was create my CXTListBox with the WS_HSCORLL and then called SetHorizontalExtent(some large number). When I scroll the listbox horizontally it leaves garbege on the screen, and if there not enough items to fill the list vertically it will leave a black area below the last item. Thanks Ali |
|
![]() |
|
AliRafiee ![]() Groupie ![]() Joined: 06 May 2004 Status: Offline Points: 32 |
![]() ![]() ![]() ![]() ![]() |
What do you know I got it fixed. Of course I had to change the code in CXTListBox. The CRect that is being passed to CXTMemDC needed to be adjusted for the horizontal scroll to work correctly. void CXTListBox::OnPaint(){
}
Well that fixes the horizontal scroll in general. Now to fix the black area showing up under the last item. Change the SetRedraw calls in the SetRedrawEx to LockWindowUpdate and UnlockWindowUpdate calls. Obviously need a condition statment. Ali Edited by AliRafiee |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |