From: Rodrigo M. <rod...@te...> - 2004-04-21 13:50:26
|
Thanks Alexander I found the way to change it, I'll change the treesetitem or create another one to handle this: TreeItem.stateMask = TVIS_STATEIMAGEMASK; TreeItem.state = INDEXTOSTATEIMAGEMASK((fCheck ? 2 : 1)); Now, i need to stop the treeview to change automatically images from image 1 to image 2 and vice-versa, where is handled ? regards Rodrigo Moreno -----Mensagem original----- De: hwg...@li... [mailto:hwg...@li...]Em nome de Alexander S.Kresin Enviada em: quarta-feira, 21 de abril de 2004 03:37 Para: hwg...@li... Assunto: [Hwgui-developers] Re: Question About TreeView On 21.04.2004 5:55, Rodrigo Moreno <rod...@te...> wrote: RM> I'm looking for the notification that change the image from image to another RM> image, but i didnt find it. RM> [ ... ] RM> It's possibly change selected image manually ? TVM_SETITEM message should be used for this purpose. Just fill the TV_ITEM structure and send the message. There is a function in control.c - TreeSetItem(), which is intended for this, but currently it changes only the item's caption. But it isn't difficult to extend it for setting image. Regards, Alexander http://kresin.belgorod.su ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Hwgui-developers mailing list Hwg...@li... https://lists.sourceforge.net/lists/listinfo/hwgui-developers |