Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Wed, 6 Aug 2008 23:58:05 -0700,    group: microsoft.public.win32.programmer.ui        back       


ImageList thread safety   
According to reference it should be. However ImageList_Replace with mask 
specified (when images are also displayed with ListView control) seem to 
produce random display errors like black rectangle etc. 
Multithreaded without mask seems to work ok, singlethread with mask works ok.
The question is there any workaround to be able to use ImageList_Replace 
multithreaded ? I can protect code around image replace in rendering thread, 
however I can't protect drawing (as it's ListView control default drawing 
code). And I don't want to duplicate code in ListView to handle drawing of 
items by my self.
The only solution so far is only adding to it, however this may eat memory 
fast (and as such is not a good idea)
date: Wed, 6 Aug 2008 23:58:05 -0700   author:   Mirek Suk Mirek

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us