Walter Meester
HoogkarspelNetherlands
General information
Category:
Forms & Form designer
>Stefan,
>
>What about a workarround ? By putting a transparent shape over the treeview you can disable all events for the treeview. By disabling the shape it reacts on the events again.
>
>Walter,
Stefan,
Got the desired 'disabled' behavior when I used the treectrl property
sheet found when right clicking on the treeview. Unfortunately, changing the
state of enabled programmatically had little affect on the treeview behavior.
Found it interesting that some other users had better success...
Realized the treeview I was testing wasn't subclassed. Tried it and seem
to be getting the desired behavior.
To subclass an activex control
Type 'Create Class yourtreeview of yourclass as olecontrol'
Select 'Insert Control' in the dialog box
Select treeview control
Hit Ok
Joe
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only