Getting the Currently Selected Item on a TreeView control

Started by Nonameo, September 04, 2005, 12:33:57 AM

Previous topic - Next topic

Nonameo

Hey guys, does anyone know how i can retrive the handle to the currently selected TreeView item ?

i've tried some stuff already, mainly using sendmessage and checking some big structures to see if they differ when i click on a different item, but no success.

if somones knows how to do this i would appreciate it

Thanks

-Nonameo-

hutch--

NoName,

I moved the topic to the Workshop si you would get more answers. The MASM32 subforum is for project related topics.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

ToutEnMasm

Hello,
With winhelp , there is no problem to get it.The problem would be in your code.
A little resume on how to proceed.
WM_NOTIFY
         TVN_SELCHANGED
            ;get the item here

Put your code here , if you want someone help you modify it
                           
                          ToutEnMasm
   


Manos

You have to send a TVM_GETNEXTITEM message to the TreeView Control,
with flag TVGN_CARET

Manos.

Shantanu Gadgil

Old topic, I know...but this works perfect. Thanks...

QuoteYou have to send a TVM_GETNEXTITEM message to the TreeView Control,
with flag TVGN_CARET

Regards,
Shantanu
To ret is human, to jmp divine!