473,386 Members | 1,842 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Tree View problem

Hi all,

I am having a small problem with a tree control I am playing with.

I have created a custom tree view that displays nodes with a linktext control to the right of the nodes. When the linktext is clicked the linktext control is hidden and a combo box appears in its place that allows the
user to choose an option. Once selected, the combo is hidden and the linktext control reappears displaying the new selection.

My problem is that when the tree view is scrolled my linktext controls stay where they are and no longer line up with the nodes. I couldn't find an treeview event to provide a mechanism for triggering the code to move
the linktext controls.

Anyone got any suggestions?

Thanks

Nick
Nov 15 '05 #1
1 1855
My problem is that when the tree view is scrolled my linktext controls stay where they are and no longer line up with the nodes. I couldn't find
an treeview event to provide a mechanism for triggering the code to movethe linktext controls.


I was looking this up in MSDN.
http://msdn.microsoft.com/library/de...us/shellcc/pla
tform/commctls/treeview/treeview.asp
The tree view has a WM_VSCROLL notification that is sent when scrolling
event occurs.
WM_VSCROLL : Scrolls the tree-view control. It returns TRUE if scrolling
occurs, or FALSE otherwise.

Looking up WM_VSCROLL in msdn.
http://msdn.microsoft.com/library/de...us/shellcc/pla
tform/commctls/scrollbars/scrollbarreference/scrollbarmessages/wm_vscroll.as
p
It says : The WM_VSCROLL message is sent to a window when a scroll event
occurs in the window's standard vertical scroll bar. This message is also
sent to the owner of a vertical scroll bar control when a scroll event
occurs in the control. A window receives this message through its
WindowProc function.
Hope this helps.
--
Adrian Mascarenhas, Developer Division

This posting is provided "AS IS" with no warranties, and confers no rights.

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.

Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Tree menu using XML | last post by:
I have one XML file that has nodes and sub node and each and every node has the attribute call visible if its value is true then diplay this node else don't display thid node, but this condition i...
1
by: Jesper DK | last post by:
Hi, I have docked a tree view to the left on a form. When I start to populate this tree view with nodes, a horizontal scroll box appears in the bottom of the tree view even though thee tree...
3
by: Saradhi | last post by:
Hi All, Here I am facing a performance problem with the TreeView Node renaming. I am displaying a hierarchy Data in a treeview in my Windows C# Application. My tree view represents an...
0
by: Tree menu using XML | last post by:
I have one XML file that has nodes and sub node and each and every node has the attribute call visible if its value is true then diplay this node else don't display thid node, but this condition i...
0
by: Santosh | last post by:
Asp.Net tree view control font problem Dear all i am downloading MS tree view control . i want to change the font size and font name of the tree view control i am wrtitting code for it like ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.