Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.basic.visual.misc > #2292
| From | "Paulo" <nospam.vbstudent@syscolor.net> |
|---|---|
| Newsgroups | comp.lang.basic.visual.misc |
| Subject | Re: How to get the coordinates (X,Y) of the top/left corner of a Node in a TreeView control |
| Date | 2016-11-16 11:11 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <o0heod$im2$1@dont-email.me> (permalink) |
| References | <o0f04a$fr0$1@dont-email.me> <2a4d4188-5170-4a5a-be7e-de2526fdee90@googlegroups.com> |
"Neila" <david.marso@gmail.com> wrote: > Doesn't Treeview have a Hittest method? The HitTest method returns the reference to a Node object located at given X,Y coordinates. I could use HiTest to check a grid of points X,Y around the TreeView control until to find a point inside the bounds of the Node cell. After a more carefull reading of the MSDN documentation I noticed the TVM_GETITEMRECT message that seems to respond to my needs. I found this nice piece of code: http://stackoverflow.com/questions/6726632/make-the-popupmenu-appear-at-the-selected-item-of-a-treeview-in-vb6 Paulo -- Classic VB!
Back to comp.lang.basic.visual.misc | Previous | Next — Previous in thread | Find similar | Unroll thread
How to get the coordinates (X,Y) of the top/left corner of a Node in a TreeView control "Paulo" <nospam.vbstudent@syscolor.net> - 2016-11-15 12:50 +0000
Re: How to get the coordinates (X,Y) of the top/left corner of a Node in a TreeView control Neila <david.marso@gmail.com> - 2016-11-15 16:15 -0800
Re: How to get the coordinates (X,Y) of the top/left corner of a Node in a TreeView control "Paulo" <nospam.vbstudent@syscolor.net> - 2016-11-16 11:11 +0000
csiph-web