Click here to Skip to main content
15,917,568 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to use SetWindowSubclass Pin
krosswindz6-Aug-03 7:50
krosswindz6-Aug-03 7:50 
GeneralBITMAP Structures Pin
colormyiris6-Aug-03 7:28
colormyiris6-Aug-03 7:28 
GeneralRe: BITMAP Structures Pin
David Crow6-Aug-03 7:33
David Crow6-Aug-03 7:33 
GeneralCFileDialog with custom activeX Pin
sdfdsfa6-Aug-03 7:22
sdfdsfa6-Aug-03 7:22 
GeneralEditbox and checkbox control questions Pin
Binayak6-Aug-03 7:14
Binayak6-Aug-03 7:14 
GeneralRe: Editbox and checkbox control questions Pin
Brian Delahunty6-Aug-03 7:22
Brian Delahunty6-Aug-03 7:22 
QuestionTree Control : How to get selected Item while Capturing single click event? Pin
Binayak6-Aug-03 6:08
Binayak6-Aug-03 6:08 
AnswerRe: Tree Control : How to get selected Item while Capturing single click event? Pin
Rage6-Aug-03 6:38
professionalRage6-Aug-03 6:38 
Binayak wrote:
Hi,

1. I want to perform different actions depending on user clicking different nodes (tree items) in the tree control. I wanted to write handler for the single click event (NM_CLICK), but, m_Tree.GetSelectedItem() returns the Item which was selected earlier, instead of the one that is selected now. Can anybody tell me how to get the Item on which the user clicks?


That's the wrong message handler, prefer overriding TVN_SELCHANGED. If you _really_ need to use NM_CLICK, I can provide you with a fix to this.



~RaGE();
GeneralRe: Tree Control : How to get selected Item while Capturing single click event? Pin
Binayak6-Aug-03 6:53
Binayak6-Aug-03 6:53 
GeneralChallenge folks!!! This can't really be that hard!?!?? :( Pin
Tommy Svensson6-Aug-03 5:45
Tommy Svensson6-Aug-03 5:45 
GeneralRe: Challenge folks!!! This can't really be that hard!?!?? :( Pin
Michael Dunn6-Aug-03 7:41
sitebuilderMichael Dunn6-Aug-03 7:41 
GeneralRe: Challenge folks!!! This can't really be that hard!?!?? :( Pin
Tommy Svensson6-Aug-03 10:20
Tommy Svensson6-Aug-03 10:20 
GeneralRe: Challenge folks!!! This can't really be that hard!?!?? :( Pin
Tommy Svensson6-Aug-03 23:03
Tommy Svensson6-Aug-03 23:03 
General"ignore all default librairies" problem Pin
alfith6-Aug-03 5:34
alfith6-Aug-03 5:34 
Questionhow to display greek characters Pin
LESUR6-Aug-03 5:08
LESUR6-Aug-03 5:08 
GeneralAnsiString case statement Pin
chris sprague19776-Aug-03 4:39
chris sprague19776-Aug-03 4:39 
GeneralRe: AnsiString case statement Pin
David Crow6-Aug-03 7:32
David Crow6-Aug-03 7:32 
GeneralSTL string Pin
act_x6-Aug-03 4:35
act_x6-Aug-03 4:35 
GeneralRe: STL string Pin
Nathan Blomquist6-Aug-03 4:43
Nathan Blomquist6-Aug-03 4:43 
GeneralRe: STL string Pin
Nemanja Trifunovic6-Aug-03 5:02
Nemanja Trifunovic6-Aug-03 5:02 
GeneralRe: STL string Pin
Johann Gerell6-Aug-03 9:06
Johann Gerell6-Aug-03 9:06 
GeneralRe: STL string Pin
jhwurmbach6-Aug-03 22:16
jhwurmbach6-Aug-03 22:16 
GeneralRe: STL string Pin
Johann Gerell6-Aug-03 22:26
Johann Gerell6-Aug-03 22:26 
GeneralRe: STL string Pin
jhwurmbach6-Aug-03 22:33
jhwurmbach6-Aug-03 22:33 
GeneralRe: STL string Pin
Johann Gerell6-Aug-03 22:37
Johann Gerell6-Aug-03 22:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.