Click here to Skip to main content
16,004,893 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: trouble in inserting data to tree control Pin
David Crow21-Jul-05 3:07
David Crow21-Jul-05 3:07 
GeneralRe: trouble in inserting data to tree control Pin
firebolt7721-Jul-05 15:32
firebolt7721-Jul-05 15:32 
GeneralRe: trouble in inserting data to tree control Pin
David Crow22-Jul-05 2:37
David Crow22-Jul-05 2:37 
GeneralRe: trouble in inserting data to tree control Pin
firebolt7724-Jul-05 15:51
firebolt7724-Jul-05 15:51 
GeneralRe: trouble in inserting data to tree control Pin
David Crow25-Jul-05 2:44
David Crow25-Jul-05 2:44 
GeneralRe: trouble in inserting data to tree control Pin
firebolt7725-Jul-05 15:24
firebolt7725-Jul-05 15:24 
GeneralRe: trouble in inserting data to tree control Pin
David Crow25-Jul-05 16:50
David Crow25-Jul-05 16:50 
GeneralRe: trouble in inserting data to tree control Pin
firebolt7725-Jul-05 17:05
firebolt7725-Jul-05 17:05 
thx...I also have some problem on populating the tree control. I want to group the tree attributes if there are same occurences. I have tried to make the function, but when I run it, my program become not responding.
here is my function:
HTREEITEM CCDBMainDlg::LoadTree(CStringArray& tree)
{
m_hItem = m_treeCDB.GetNextItem(m_hItem,TVGN_ROOT);
if(m_treeCDB.ItemHasChildren(m_hItem))
{
m_hItem = m_treeCDB.GetChildItem(m_hItem);
while(m_treeCDB.GetItemText(m_hItem).Compare(tree.GetAt(12))!=NULL || m_hItem != NULL)
{
m_hItem = m_treeCDB.GetNextSiblingItem(m_hItem);
}
if(m_treeCDB.ItemHasChildren(m_hItem))
{
m_hItem = m_treeCDB.GetChildItem(m_hItem);
while(m_treeCDB.GetItemText(m_hItem).Compare(tree.GetAt(11))!=NULL || m_hItem != NULL)
{
m_hItem = m_treeCDB.GetNextSiblingItem(m_hItem);
}
if(m_treeCDB.ItemHasChildren(m_hItem))
{
m_hItem = m_treeCDB.GetChildItem(m_hItem);
while(m_treeCDB.GetItemText(m_hItem).Compare(tree.GetAt(0))!=NULL || m_hItem != NULL)
{
m_hItem = m_treeCDB.GetNextSiblingItem(m_hItem);
}
}
else
{
m_hItem = m_treeCDB.InsertItem(tree.GetAt(0),0,1,m_hItem);
}
}
else
{
m_hItem = m_treeCDB.InsertItem(tree.GetAt(11),0,1,m_hItem);
m_hItem = m_treeCDB.InsertItem(tree.GetAt(0),0,1,m_hItem);
}

}
else
{
m_hItem = m_treeCDB.InsertItem(tree.GetAt(12),0,1,m_hItem);
m_hItem = m_treeCDB.InsertItem(tree.GetAt(11),0,1,m_hItem);
m_hItem = m_treeCDB.InsertItem(tree.GetAt(0),0,1,m_hItem);
}
m_hItem = m_treeCDB.InsertItem(tree.GetAt(1),0,1,m_hItem);
m_treeCDB.EnsureVisible(m_hItem);
return m_hItem;
}
pls help.
thx.
GeneralRe: trouble in inserting data to tree control Pin
David Crow26-Jul-05 2:31
David Crow26-Jul-05 2:31 
GeneralUser Management Pin
sunit520-Jul-05 21:35
sunit520-Jul-05 21:35 
GeneralRe: User Management Pin
David Crow21-Jul-05 3:10
David Crow21-Jul-05 3:10 
GeneralRe: User Management Pin
sunit521-Jul-05 4:24
sunit521-Jul-05 4:24 
Generalmaterial1 Pin
poojapatel2220-Jul-05 21:32
poojapatel2220-Jul-05 21:32 
GeneralRe: material1 Pin
GDavy21-Jul-05 0:21
GDavy21-Jul-05 0:21 
GeneralRe: material1 Pin
Blake Miller21-Jul-05 4:55
Blake Miller21-Jul-05 4:55 
QuestionHow can I use exported function from EXE, not DLL Pin
plowstar20-Jul-05 21:31
plowstar20-Jul-05 21:31 
AnswerRe: How can I use exported function from EXE, not DLL Pin
Themis20-Jul-05 21:45
Themis20-Jul-05 21:45 
AnswerRe: How can I use exported function from EXE, not DLL Pin
Alexander M.,21-Jul-05 1:27
Alexander M.,21-Jul-05 1:27 
QuestionWhen does a window appear? Pin
Themis20-Jul-05 21:31
Themis20-Jul-05 21:31 
AnswerRe: When does a window appear? Pin
Cool Ju20-Jul-05 22:46
Cool Ju20-Jul-05 22:46 
AnswerRe: When does a window appear? Pin
Bob Stanneveld21-Jul-05 2:58
Bob Stanneveld21-Jul-05 2:58 
GeneralRe: When does a window appear? Pin
Themis21-Jul-05 5:01
Themis21-Jul-05 5:01 
AnswerRe: When does a window appear? Pin
John R. Shaw21-Jul-05 7:01
John R. Shaw21-Jul-05 7:01 
QuestionHow to send data to DDEML Server and get it processed. Pin
shyam sharma20-Jul-05 20:20
shyam sharma20-Jul-05 20:20 
Questionhow to get the notify which all of child process has exit? Pin
yqzq20-Jul-05 20:10
yqzq20-Jul-05 20:10 

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.