Solved

Missing event for TreeView...Need suggestions!

Posted on 2000-03-08
6
149 Views
Last Modified: 2010-05-02
I need an event when resizing columns in the TreeView control. Suggestions?
0
Comment
Question by:Olli083097
6 Comments
 
LVL 2

Expert Comment

by:p_biggelaar
ID: 2596316
<resizing columns in the treeview control>

Are you sure you're talking about resizing columns in a treeview? Don't you mean:
A) resizing the treeview
-or-
B) resizing columns in the listview
0
 
LVL 2

Expert Comment

by:p_biggelaar
ID: 2596420
Oh, and..

A) not an option (there is no way for a user to resize the treeview)

B) the listview hasn't got events to tell you that a resize happened, or that it's going on. If you really, really need to know this there's a nasty way of determining it by for instance using a timer with a short interval that checks the columnheaders width property or something like that. But you should be really desperate of getting that info (your life or job is at stake or something like that) before you should even consider that as an option.
0
 
LVL 6

Expert Comment

by:andyclap
ID: 2598621
You could hook the message WM_NOTIFY, and look for a code of HDN_ENDTRACK in the NMHDR structure.
Just guessing here, check out what messages are being sent using spy.
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 14

Accepted Solution

by:
wsh2 earned 100 total points
ID: 2599126
Yes.. andyclap is correct.. this definitely can be done through subclassing the Listview header. Check this out.. you will find MANY Listview API solutions with code.. in the Common Controls / Listview section.

http://www.mvps.org/vbnet/

Once there, keep an eye out for the one entitled.. "Subclassing and Responding to Notifications from the ListView Header".. in as you will find your solution there.. <smile>.

0
 

Author Comment

by:Olli083097
ID: 2599644
All:
I'm sorry, I really meant ListView(I wrote the question after a long day's work...).

wsh2:
Thanx! Exactly what I needed!!! Thanx!

BTW: I liked the page, "VBnet"
0
 

Author Comment

by:Olli083097
ID: 2599647
ARG! Forgot to accept your answer... Thanx, again!
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now