Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TreeView.BackColor ???
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00318866
Message ID:
00319333
Views:
15
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
------------------------------------
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform