Click here to Skip to main content
15,908,674 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Mixing C++ and .Net at runtime -- is it possible ? Pin
CPallini27-Oct-09 22:42
mveCPallini27-Oct-09 22:42 
AnswerRe: Mixing C++ and .Net at runtime -- is it possible ? Pin
Iain Clarke, Warrior Programmer28-Oct-09 0:54
Iain Clarke, Warrior Programmer28-Oct-09 0:54 
GeneralRe: Mixing C++ and .Net at runtime -- is it possible ? Pin
ERLN28-Oct-09 1:39
ERLN28-Oct-09 1:39 
Questionwindow is disabled but can it receive focus Pin
prithaa27-Oct-09 16:15
prithaa27-Oct-09 16:15 
AnswerRe: window is disabled but can it receive focus Pin
Naveen27-Oct-09 17:42
Naveen27-Oct-09 17:42 
AnswerRe: window is disabled but can it receive focus Pin
Randor 27-Oct-09 20:25
professional Randor 27-Oct-09 20:25 
GeneralRe: window is disabled but can it receive focus Pin
prithaa27-Oct-09 22:59
prithaa27-Oct-09 22:59 
QuestionCTreeCtrl in MFC Pin
Larry Mills Sr27-Oct-09 14:49
Larry Mills Sr27-Oct-09 14:49 
I have a CTreeCtrl defined in my header with a instance of m_cTree.   Here's a brief description of how the Tree looks:
   [+]   Reports   (main Heading)
            [+]Construction (child of Reports)
                  [+] Materials (child of Construction)
                           Materials Report.txt(the ".txt" is only to show you this is the actual report)
            [+]Maintenance (child of Reports)
                           Maintenance Report.txt(the ".txt" is only to show you this is the actual report)
                  [+] Cost (child of Maintenance)
            [+]Exspenses (child of Reports)
                  [+] Job Cost (child of Exspenses)
                           Exspenses Report.txt(the ".txt" is only to show you this is the actual report)

======================= end of example   ======================
In OnNM_ClickTreeCtrl()
I cannot get the reports using this:
     HTREEITEM hItem= m_cTree.GetSelectedItem();
            HTREEITEM hChildItem = m_cTree.GetChildItem(hItem);
            CString sSelText= m_cTree.GetItemText( hItem );
What is returns is whatever is selected including the button("[+]", the main heading, each child and finally the report.   How do I only receive the click on the Reports themselves, not all the headings?
PLEASE use my example in your explaination, WITH(please) the appropriate code.

Thanks in advance.

A C++ programming language novice, but striving to learn

AnswerRe: CTreeCtrl in MFC Pin
Naveen27-Oct-09 17:57
Naveen27-Oct-09 17:57 
GeneralRe: CTreeCtrl in MFC Pin
Larry Mills Sr28-Oct-09 2:58
Larry Mills Sr28-Oct-09 2:58 
QuestionHow do I find out if a new file exists in a directory Pin
MikeRWinter27-Oct-09 13:17
MikeRWinter27-Oct-09 13:17 
AnswerRe: How do I find out if a new file exists in a directory Pin
Richard MacCutchan27-Oct-09 13:45
mveRichard MacCutchan27-Oct-09 13:45 
GeneralRe: How do I find out if a new file exists in a directory Pin
MikeRWinter27-Oct-09 14:12
MikeRWinter27-Oct-09 14:12 
Questionimport "msado15.idl" problems Pin
MrKBA27-Oct-09 8:53
MrKBA27-Oct-09 8:53 
QuestionRe: import "msado15.idl" problems Pin
David Crow27-Oct-09 10:03
David Crow27-Oct-09 10:03 
AnswerRe: import "msado15.idl" problems Pin
MrKBA27-Oct-09 11:12
MrKBA27-Oct-09 11:12 
AnswerRe: import "msado15.idl" problems Pin
22491727-Oct-09 15:04
22491727-Oct-09 15:04 
GeneralRe: import "msado15.idl" problems Pin
MrKBA27-Oct-09 22:01
MrKBA27-Oct-09 22:01 
QuestionSQLDriverConnect() crashes with vs 9 against ora DB Pin
adam_wind27-Oct-09 8:49
adam_wind27-Oct-09 8:49 
GeneralRe: SQLDriverConnect() crashes with vs 9 against ora DB Pin
22491727-Oct-09 9:38
22491727-Oct-09 9:38 
GeneralRe: SQLDriverConnect() crashes with vs 9 against ora DB Pin
adam_wind27-Oct-09 23:00
adam_wind27-Oct-09 23:00 
QuestionHelp Understanding Program Speed Variation from PC to PC Pin
en9ap27-Oct-09 8:44
en9ap27-Oct-09 8:44 
AnswerRe: Help Understanding Program Speed Variation from PC to PC Pin
Code-o-mat27-Oct-09 9:48
Code-o-mat27-Oct-09 9:48 
GeneralRe: Help Understanding Program Speed Variation from PC to PC Pin
en9ap28-Oct-09 3:22
en9ap28-Oct-09 3:22 
QuestionStrange comms port behavior Pin
softwaremonkey27-Oct-09 8:06
softwaremonkey27-Oct-09 8:06 

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.