Click here to Skip to main content
15,911,646 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Listview redraw problems Pin
[James Pullicino]5-Jul-02 8:44
[James Pullicino]5-Jul-02 8:44 
GeneralRe: Listview redraw problems Pin
CaesarCZ5-Jul-02 8:56
CaesarCZ5-Jul-02 8:56 
GeneralRe: Listview redraw problems Pin
[James Pullicino]5-Jul-02 11:06
[James Pullicino]5-Jul-02 11:06 
GeneralRe: Listview redraw problems Pin
CaesarCZ5-Jul-02 12:58
CaesarCZ5-Jul-02 12:58 
GeneralRe: Listview redraw problems Pin
CaesarCZ5-Jul-02 23:45
CaesarCZ5-Jul-02 23:45 
GeneralRe: Listview redraw problems Pin
Shog96-Jul-02 17:11
sitebuilderShog96-Jul-02 17:11 
GeneralRe: Listview redraw problems Pin
CaesarCZ7-Jul-02 0:18
CaesarCZ7-Jul-02 0:18 
GeneralRe: Listview redraw problems Pin
Shog97-Jul-02 8:24
sitebuilderShog97-Jul-02 8:24 
CaesarCZ wrote:
IMHO this could actually eat a large portion o f cpu time, but has nothing to do with flickering

I don't know that it does, just stabbing in the dark looking for odd things in your code (because of course, mine does not flicker Wink | ;) ). Potentially, it could be causing flicker simply because the view would then think all the images have changed and it needs to redraw them.

Anyway, you *don't* have to set the image list each time you add an image to it. The handle doesn't change when you add an image, so the list already knows where to look; you just need to tell it the index of the image for the new item. The only reason i could think of that you would need to re-set the image list, would be if you were modifying all the existing images in it, as you would then need to inform the listview that they had changed. But in your case, it is unnecessary.

So, give it a try & see if that doesn't reduce flicker.

- Shog9 -

Aaah... It's time to relax. You know what that means: a glass of beer, your favorite ergo chair... And of course, The Code Project loaded on your Personal Computer System. So go on, and indulge yourself, put your feet up. Lean back and just enjoy the articles. After all, CP sooths even the savage Green Alien | [Alien]


GeneralInet help Pin
5-Jul-02 6:36
suss5-Jul-02 6:36 
GeneralRe: Inet help Pin
Todd Smith5-Jul-02 6:52
Todd Smith5-Jul-02 6:52 
GeneralRe: Inet help Pin
5-Jul-02 6:59
suss5-Jul-02 6:59 
GeneralRe: Inet help Pin
Hanzo25-Oct-02 18:58
Hanzo25-Oct-02 18:58 
QuestionWin32, ATL, WTL or MFC, which route to take? Pin
generic_user_id5-Jul-02 5:51
generic_user_id5-Jul-02 5:51 
AnswerRe: Win32, ATL, WTL or MFC, which route to take? Pin
Michael Dunn5-Jul-02 8:19
sitebuilderMichael Dunn5-Jul-02 8:19 
GeneralRe: Win32, ATL, WTL or MFC, which route to take? Pin
generic_user_id5-Jul-02 11:48
generic_user_id5-Jul-02 11:48 
GeneralRe: Win32, ATL, WTL or MFC, which route to take? Pin
loket5-Jul-02 12:07
loket5-Jul-02 12:07 
GeneralRe: Win32, ATL, WTL or MFC, which route to take? Pin
Michael Dunn5-Jul-02 12:08
sitebuilderMichael Dunn5-Jul-02 12:08 
GeneralRe: Win32, ATL, WTL or MFC, which route to take? Pin
generic_user_id5-Jul-02 23:29
generic_user_id5-Jul-02 23:29 
AnswerRe: Win32, ATL, WTL or MFC, which route to take? Pin
loket5-Jul-02 12:01
loket5-Jul-02 12:01 
GeneralRe: Win32, ATL, WTL or MFC, which route to take? Pin
generic_user_id5-Jul-02 23:34
generic_user_id5-Jul-02 23:34 
GeneralRe: Win32, ATL, WTL or MFC, which route to take? Pin
loket6-Jul-02 1:52
loket6-Jul-02 1:52 
GeneralRe: Win32, ATL, WTL or MFC, which route to take? Pin
generic_user_id6-Jul-02 2:32
generic_user_id6-Jul-02 2:32 
GeneralRe: Win32, ATL, WTL or MFC, which route to take? Pin
generic_user_id6-Jul-02 2:50
generic_user_id6-Jul-02 2:50 
GeneralRe: Win32, ATL, WTL or MFC, which route to take? Pin
loket6-Jul-02 2:55
loket6-Jul-02 2:55 
GeneralProcessing GPS data in C++ Pin
5-Jul-02 4:41
suss5-Jul-02 4:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.