Click here to Skip to main content
16,011,868 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ShellExecute Pin
Jose Lamas Rios25-Jul-05 19:08
Jose Lamas Rios25-Jul-05 19:08 
GeneralButtons are disabled on dialog templates,. Pin
Maverick24-Jul-05 18:47
Maverick24-Jul-05 18:47 
GeneralRe: Buttons are disabled on dialog templates,. Pin
Marc Soleda24-Jul-05 19:37
Marc Soleda24-Jul-05 19:37 
GeneralRe: Buttons are disabled on dialog templates,. Pin
krmed25-Jul-05 2:45
krmed25-Jul-05 2:45 
GeneralRe: Buttons are disabled on dialog templates,. Pin
Maverick25-Jul-05 4:30
Maverick25-Jul-05 4:30 
GeneralRe: Buttons are disabled on dialog templates,. Pin
Maverick25-Jul-05 4:33
Maverick25-Jul-05 4:33 
GeneralRe: Buttons are disabled on dialog templates,. Pin
krmed25-Jul-05 4:58
krmed25-Jul-05 4:58 
Generaltrouble in grouping tree control attributes Pin
firebolt7724-Jul-05 18:24
firebolt7724-Jul-05 18:24 
I want to make a tree control based on database file.(I want to group the same occurence in database using tree control). but when I run my program, the tree control is not grouping
here i my function:
HTREEITEM CCDBMainDlg::LoadTree(CStringArray& tree)
{
//HTREEITEM hItem2;
m_treeNetwork = m_treeCDB.GetNextItem(m_treeNetwork,TVGN_ROOT);
//m_treeNetwork = m_treeCDB.GetChildItem(m_treeNetwork);
//m_treeCDB.SetImageList(&m_ImageList,TVSIL_NORMAL);

if((m_treeNetwork = m_treeCDB.GetChildItem(m_treeNetwork)) != NULL)
{
while(m_treeCDB.GetItemText(m_treeNetwork).Compare(tree.GetAt(12))!=NULL || m_treeNetwork != NULL)
{
m_treeNetwork = m_treeCDB.GetNextSiblingItem(m_treeNetwork);
}
if((m_treeNetwork = m_treeCDB.GetChildItem(m_treeNetwork)) != NULL)
{
while(m_treeCDB.GetItemText(m_treeNetwork).Compare(tree.GetAt(11))!=NULL || m_treeNetwork != NULL)
{
m_treeNetwork = m_treeCDB.GetNextSiblingItem(m_treeNetwork);
}
if((m_treeNetwork = m_treeCDB.GetChildItem(m_treeNetwork)) != NULL)
{
while(m_treeCDB.GetItemText(m_treeNetwork).Compare(tree.GetAt(0))!=NULL || m_treeNetwork != NULL)
{
m_treeNetwork = m_treeCDB.GetNextSiblingItem(m_treeNetwork);
}
}
else
{
m_treeNetwork = m_treeCDB.InsertItem(tree.GetAt(0),0,1,m_treeNetwork);
}
}
else
{
m_treeNetwork = m_treeCDB.InsertItem(tree.GetAt(11),0,1,m_treeNetwork);
m_treeNetwork = m_treeCDB.InsertItem(tree.GetAt(0),0,1,m_treeNetwork);
}

}
else
{
m_treeNetwork = m_treeCDB.InsertItem(tree.GetAt(12),0,1,m_treeNetwork);
m_treeNetwork = m_treeCDB.InsertItem(tree.GetAt(11),0,1,m_treeNetwork);
m_treeNetwork = m_treeCDB.InsertItem(tree.GetAt(0),0,1,m_treeNetwork);
}
m_treeNetwork = m_treeCDB.InsertItem(tree.GetAt(1),0,1,m_treeNetwork);
return m_treeNetwork;
}
sorry if my function is too complicated, because I am still new in MFC
pls help..thx
GeneralGetting the path Pin
Veera Raghavendra24-Jul-05 17:57
Veera Raghavendra24-Jul-05 17:57 
GeneralRe: Getting the path Pin
Christian Graus24-Jul-05 18:31
protectorChristian Graus24-Jul-05 18:31 
QuestionWhat is the difference between CArray and CTypedPtrArray? Pin
KeyL24-Jul-05 17:47
KeyL24-Jul-05 17:47 
AnswerRe: What is the difference between CArray and CTypedPtrArray? Pin
Christian Graus24-Jul-05 18:30
protectorChristian Graus24-Jul-05 18:30 
QuestionHow to add MFC support to an ATL project in Visual C++ Pin
24-Jul-05 17:29
suss24-Jul-05 17:29 
AnswerRe: How to add MFC support to an ATL project in Visual C++ Pin
Member 212103824-Jul-05 18:21
Member 212103824-Jul-05 18:21 
QuestionWhy CArray is not type-safe? Pin
KeyL24-Jul-05 17:21
KeyL24-Jul-05 17:21 
AnswerRe: Why CArray is not type-safe? Pin
Christian Graus24-Jul-05 18:32
protectorChristian Graus24-Jul-05 18:32 
GeneralRe: Why CArray is not type-safe? Pin
KeyL24-Jul-05 18:40
KeyL24-Jul-05 18:40 
GeneralRe: Why CArray is not type-safe? Pin
Christian Graus24-Jul-05 18:43
protectorChristian Graus24-Jul-05 18:43 
GeneralRe: Why CArray is not type-safe? Pin
KeyL24-Jul-05 19:44
KeyL24-Jul-05 19:44 
GeneralRe: Why CArray is not type-safe? Pin
Christian Graus24-Jul-05 20:34
protectorChristian Graus24-Jul-05 20:34 
Questionhow to insert Pin
Umair Ahmad khan24-Jul-05 15:08
Umair Ahmad khan24-Jul-05 15:08 
AnswerRe: how to insert Pin
David Crow24-Jul-05 15:58
David Crow24-Jul-05 15:58 
QuestionHow do I use the string tables in forms components? Pin
luddet24-Jul-05 14:56
luddet24-Jul-05 14:56 
AnswerRe: How do I use the string tables in forms components? Pin
luddet26-Jul-05 1:57
luddet26-Jul-05 1:57 
GeneralRe: How do I use the string tables in forms components? Pin
luddet2-Aug-05 4:18
luddet2-Aug-05 4:18 

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.