Click here to Skip to main content
15,499,573 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: index of HTREEITEM item? Pin
Code-o-mat28-Sep-11 10:57
MemberCode-o-mat28-Sep-11 10:57 
AnswerRe: index of HTREEITEM item? Pin
Maximilien28-Sep-11 13:34
MemberMaximilien28-Sep-11 13:34 
QuestionRe: index of HTREEITEM item? Pin
David Crow28-Sep-11 4:07
MemberDavid Crow28-Sep-11 4:07 
AnswerRe: use LPARAM to get index Pin
Software_Developer28-Sep-11 4:10
MemberSoftware_Developer28-Sep-11 4:10 
QuestionCRichEdit control Scrollbar issue in MFC Application Pin
Member 827069028-Sep-11 1:19
MemberMember 827069028-Sep-11 1:19 
AnswerRe: CRichEdit control Scrollbar issue in MFC Application - Repost Pin
Richard MacCutchan28-Sep-11 4:50
mveRichard MacCutchan28-Sep-11 4:50 
QuestionSelectItem of CTreeCtrl Pin
zon_cpp28-Sep-11 0:44
Memberzon_cpp28-Sep-11 0:44 
AnswerRe: SelectItem of CTreeCtrl Pin
Zasky28-Sep-11 1:41
MemberZasky28-Sep-11 1:41 
It's not possible to access nodes by index. You must know the handle of the node. If you don't have records of the node handles, you can parse the tree:

C++
// Start with the root item:
HTREEITEM hRoot = myTree.GetRootItem();

// Get the first child of the root:
HTREEITEM hChild1 = myTree.GetChildItem(hRoot);

// Move through the siblings until you reach the node you want:
HTREEITEM hChild2 = myTree.GetNextSiblingItem(hChild1)
HTREEITEM hChild3 = myTree.GetNextSiblingItem(hChild2)

AnswerRe: SelectItem of CTreeCtrl Pin
Roger Allen29-Sep-11 1:34
MemberRoger Allen29-Sep-11 1:34 
QuestionEnvironment for PIC programming Pin
CodingLover28-Sep-11 0:40
MemberCodingLover28-Sep-11 0:40 
AnswerRe: Environment for PIC programming Pin
Software_Developer28-Sep-11 1:19
MemberSoftware_Developer28-Sep-11 1:19 
GeneralRe: Environment for PIC programming Pin
CodingLover28-Sep-11 1:26
MemberCodingLover28-Sep-11 1:26 
GeneralRe: Environment for PIC programming Pin
Software_Developer28-Sep-11 3:04
MemberSoftware_Developer28-Sep-11 3:04 
GeneralRe: Environment for PIC programming Pin
CodingLover28-Sep-11 19:02
MemberCodingLover28-Sep-11 19:02 
GeneralRe: Environment for PIC programming Pin
Albert Holguin29-Sep-11 4:34
professionalAlbert Holguin29-Sep-11 4:34 
AnswerRe: Environment for PIC programming Pin
castingflame28-Sep-11 5:18
Membercastingflame28-Sep-11 5:18 
GeneralRe: Environment for PIC programming Pin
CodingLover28-Sep-11 19:07
MemberCodingLover28-Sep-11 19:07 
QuestionWaitForSingleObject Pin
john563227-Sep-11 23:58
Memberjohn563227-Sep-11 23:58 
AnswerRe: WaitForSingleObject Pin
Cedric Moonen28-Sep-11 2:21
MemberCedric Moonen28-Sep-11 2:21 
AnswerRe: WaitForSingleObject Pin
Code-o-mat28-Sep-11 5:37
MemberCode-o-mat28-Sep-11 5:37 
GeneralRe: WaitForSingleObject Pin
Albert Holguin29-Sep-11 4:37
professionalAlbert Holguin29-Sep-11 4:37 
GeneralRe: WaitForSingleObject Pin
Code-o-mat29-Sep-11 4:40
MemberCode-o-mat29-Sep-11 4:40 
AnswerRe: WaitForSingleObject Pin
Roger Stoltz28-Sep-11 22:18
MemberRoger Stoltz28-Sep-11 22:18 
AnswerRe: WaitForSingleObject Pin
Albert Holguin29-Sep-11 4:42
professionalAlbert Holguin29-Sep-11 4:42 
QuestionCRichEditCtrl Flickring Pin
john563227-Sep-11 20:43
Memberjohn563227-Sep-11 20:43 

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.