Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TreeView.BackColor ???
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00318866
Message ID:
00319333
Vues:
13
Thanks A lot.
I Also found the HWND hidden, but public, property of the treeview. This is a MUST property for lot of funny things!


It works perfect.

Some example of implementation, ok?? :O)


LOCAL lnColorRef

#define TV_FIRST 0x1100
#define TVM_SETBKCOLOR (TV_FIRST + 29)


* sendmessage(handle,action,forecolor, backcolor)
declare integer SendMessage in win32api integer, integer, integer, integer

*Thisform.trvUsos is a subclassified MSTreview version 6.o

lnColorRef = SendMessage(Thisform.trvUsos.HWnd, TVM_SETBKCOLOR, rgb(0,0,0), rgb(0,0,255) )


*Thisform.oletree is a pasted (directly in the form) MSTreview version 6.o

lnColorRef = SendMessage(Thisform.oletree.HWnd, TVM_SETBKCOLOR, rgb(0,0,0), rgb(0,0,255))


Of course you need to change also the color of the nodes, ok??, but that is another history...
------------------------------------
Miguel Angel Hernaiz
miguel@gnomo.net --- miguel@vfug.org
ICQ: 3813422 --- www.gnomo.net
------------------------------------
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform