CXTListCtrl Flicker |
Post Reply |
Author | |
srana
Groupie Joined: 15 May 2003 Location: India Status: Offline Points: 27 |
Post Options
Thanks(0)
Posted: 20 May 2003 at 10:18am |
Hello
I am using CXTListCtrl there is a noticing and annoying flicker when the control contents are displayed modified, viewed. I first fill the control with data about 500 or so records. Control is hidden during the update. After update I show the control. When viewing the data the flickering is so much that it takes few seconds to go to top and thento bottom. It is very annoying also. I am using CXTlistctrl heavily in my applications. Infact I have tried many options to speed up drawing but to no avail. Can you please suggest a new class or modify the CXTlistctrl so that there should be no flicker like in many controls on codeguru and codeproject. Regards Shrishail Rana |
|
Shrishail Rana |
|
kstowell
Admin Group Joined: 25 January 2003 Location: MIchigan, USA Status: Offline Points: 496 |
Post Options
Thanks(0)
|
Hello, To you notice this problem with the standard CListControl? I am supscious, without actually seeing your code where the problem actually occurs. There are several techniques that you can use to reduce or eliminate flicker in your application. If you look at the Outllook GUI sample, you will see that this uses a CXTListCtrl and there is no flicker at all when the list or application is resized. I would suggest that you take a look at some of the sample projects for some ideas on how to reduce flicker in your application. Also, take a look at the CMainFrame::PreCreateWindow method in the Outlook project for starters...hope this helps. Best regards, |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello I have used it from sample only. Infact I am using only insertitem and setitem using LVITEM struct which can directly be used with clistctrl also. You can test it with inserting 500 or so records and them move to top using scroll bar and tehn to down. You will see the flicker. With standard list ctrl there is no flicker.
|
|
srana
Groupie Joined: 15 May 2003 Location: India Status: Offline Points: 27 |
Post Options
Thanks(0)
|
When we use the mouse on the scroll bars there is considerable flicker. But when we use pageup page down or resizing there is no flicker. You can test it with a limited data with single column also. Regards Shrishail Rana
|
|
Shrishail Rana |
|
kstowell
Admin Group Joined: 25 January 2003 Location: MIchigan, USA Status: Offline Points: 496 |
Post Options
Thanks(0)
|
This problem has been corrected with the upcoming release of the toolkit. As a work around, comment out the following 2 lines in the message map for the CXTListCtrl class: // ON_WM_HSCROLL() Regards, Edited by Administrator |
|
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 |