Click here to Skip to main content
15,880,891 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Increment and Decrement Operators Pin
tgsb7-Jan-14 20:38
tgsb7-Jan-14 20:38 
GeneralRe: Increment and Decrement Operators Pin
OriginalGriff8-Jan-14 1:56
mveOriginalGriff8-Jan-14 1:56 
GeneralRe: Increment and Decrement Operators Pin
tgsb8-Jan-14 19:43
tgsb8-Jan-14 19:43 
GeneralRe: Increment and Decrement Operators Pin
OriginalGriff8-Jan-14 19:44
mveOriginalGriff8-Jan-14 19:44 
QuestionCTreeCtrl::GetNextSiblingItem never null Pin
dliviu6-Jan-14 1:15
dliviu6-Jan-14 1:15 
AnswerRe: CTreeCtrl::GetNextSiblingItem never null Pin
_Flaviu7-Jan-14 20:24
_Flaviu7-Jan-14 20:24 
GeneralRe: CTreeCtrl::GetNextSiblingItem never null Pin
dliviu8-Jan-14 0:55
dliviu8-Jan-14 0:55 
GeneralRe: CTreeCtrl::GetNextSiblingItem never null Pin
_Flaviu8-Jan-14 1:27
_Flaviu8-Jan-14 1:27 
I had created an dialog based project, where I put an tree control, named m_Tree, and in OnInitDialog I wrote following code:
C++
HTREEITEM hItem = m_Tree.InsertItem(_T("One"));
m_Tree.InsertItem(_T("Test1"), hItem);
m_Tree.InsertItem(_T("Test2"), hItem);
m_Tree.InsertItem(_T("Test3"), hItem);
m_Tree.InsertItem(_T("Two"));
m_Tree.InsertItem(_T("Three"));
HTREEITEM hRoot = m_Tree.GetRootItem();
if(m_Tree.ItemHasChildren(hRoot))
{
    HTREEITEM hChild = m_Tree.GetChildItem(hRoot);
    while(NULL != hChild)
    {
        TRACE("%s\n", m_Tree.GetItemText(hChild));
        hChild = m_Tree.GetNextSiblingItem(hChild);
    }
}

which are similar with yours, and I get this:
C++
Test1
Test2
Test3

You could try it ...

modified 13-Jan-14 3:48am.

GeneralRe: CTreeCtrl::GetNextSiblingItem never null Pin
dliviu8-Jan-14 1:36
dliviu8-Jan-14 1:36 
QuestionShort time format Pin
_Flaviu6-Jan-14 0:42
_Flaviu6-Jan-14 0:42 
SuggestionRe: Short time format Pin
Richard MacCutchan6-Jan-14 0:56
mveRichard MacCutchan6-Jan-14 0:56 
GeneralRe: Short time format Pin
_Flaviu6-Jan-14 1:06
_Flaviu6-Jan-14 1:06 
QuestionRe: Short time format Pin
_Flaviu6-Jan-14 1:40
_Flaviu6-Jan-14 1:40 
GeneralRe: Short time format Pin
Richard MacCutchan6-Jan-14 2:20
mveRichard MacCutchan6-Jan-14 2:20 
GeneralRe: Short time format Pin
_Flaviu6-Jan-14 2:24
_Flaviu6-Jan-14 2:24 
AnswerRe: Short time format Pin
David Crow6-Jan-14 5:03
David Crow6-Jan-14 5:03 
GeneralRe: Short time format Pin
_Flaviu6-Jan-14 20:44
_Flaviu6-Jan-14 20:44 
AnswerRe: Short time format Pin
Peter Leow6-Jan-14 1:06
professionalPeter Leow6-Jan-14 1:06 
Question[build c++ by command line on windows OS][visual studio 2008] Pin
Thong LeTrung5-Jan-14 21:32
Thong LeTrung5-Jan-14 21:32 
AnswerRe: [build c++ by command line on windows OS][visual studio 2008] Pin
Richard MacCutchan5-Jan-14 22:22
mveRichard MacCutchan5-Jan-14 22:22 
QuestionHow to build QT application statically Pin
Utheen5-Jan-14 17:45
Utheen5-Jan-14 17:45 
AnswerRe: How to build QT application statically Pin
Richard MacCutchan5-Jan-14 22:19
mveRichard MacCutchan5-Jan-14 22:19 
AnswerRe: How to build QT application statically Pin
Marco Bertschi6-Jan-14 0:12
protectorMarco Bertschi6-Jan-14 0:12 
GeneralRe: How to build QT application statically Pin
Utheen6-Jan-14 0:23
Utheen6-Jan-14 0:23 
GeneralRe: How to build QT application statically Pin
Marco Bertschi6-Jan-14 0:43
protectorMarco Bertschi6-Jan-14 0: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.