1 Feb 2007 10:22
Re: status icons
Hi, > On 1/31/07, *Josef Kučera* <jokusoftware <at> gmail.com > <mailto:jokusoftware <at> gmail.com>> wrote: > > > Hello all, > the idea of MICON reminded me something - what about this concept: a > plugin will get HICON, it will ask Icolib whether it is managed by > it and if yes, call "iconlib_add_ref"... and when no longer needed > just call IconLib_ReleaseIcon()... The situation when HICON is not > managed by icolib can be handled by copying the HICON and Destroying > it when no longer needed - This sounds to me like the cleanest > solution, but it includes some overhead... > > Joe <at> Whale This is similar to what I did in scriver. I am just making a copy of an icon and then call DestroyIcon() on the copy instead of the original icon. However, this approach will create redundant GDI objects when IcoLib is not used. > From: borkra > I do disagree that this is the best way to deal with destroying icons. > Because if plugin decided to change the icon there is a period where > old icon is invalid and new icon is not there yet which will create > problems and possibly crashes. The other issue when one thread is > deleting icon while the other thread trying to draw it. (plugins are > not synchronized so there is no say who will do what). This situation(Continue reading)

RSS Feed