Click here to Skip to main content
15,887,346 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWhat's wrong with my map engine? Pin
Lord Kixdemp28-Jan-06 4:35
Lord Kixdemp28-Jan-06 4:35 
QuestionProblems with a trayicon popup menu Pin
428828-Jan-06 3:51
428828-Jan-06 3:51 
AnswerRe: Problems with a trayicon popup menu Pin
Owner drawn29-Jan-06 18:06
Owner drawn29-Jan-06 18:06 
GeneralRe: Problems with a trayicon popup menu Pin
428829-Jan-06 19:05
428829-Jan-06 19:05 
GeneralRe: Problems with a trayicon popup menu Pin
Owner drawn30-Jan-06 16:50
Owner drawn30-Jan-06 16:50 
QuestionMS DataGrid Control 6 - Find Selected Row & Read Cell Values Pin
sdancer7528-Jan-06 3:07
sdancer7528-Jan-06 3:07 
QuestionNumber of Children in a Particular Node Pin
kandukuri27-Jan-06 23:53
kandukuri27-Jan-06 23:53 
AnswerRe: Number of Children in a Particular Node Pin
Stephen Hewitt28-Jan-06 0:43
Stephen Hewitt28-Jan-06 0:43 
If I understand your question correctly you want to count the immediate children of a node. If this is the case code like this should do it:

UINT Count = 0;
HTREEITEM hItem = m_Tree.GetChildItem(hRootItem);
while (hItem != NULL)
{
  ++Count;
  HTREEITEM hNextItem = m_Tree.GetNextSiblingItem(hItem);
}


NOTE: I haven't actually tried this! Assumes you're using MFC (although it is easily adaptable if you're not).

Steve
GeneralRe: Number of Children in a Particular Node Pin
kandukuri28-Jan-06 3:56
kandukuri28-Jan-06 3:56 
GeneralRe: Number of Children in a Particular Node Pin
Stephen Hewitt28-Jan-06 18:06
Stephen Hewitt28-Jan-06 18:06 
GeneralRe: Number of Children in a Particular Node Pin
kandukuri28-Jan-06 22:01
kandukuri28-Jan-06 22:01 
QuestionMDI Without menu Pin
bantisk27-Jan-06 23:24
bantisk27-Jan-06 23:24 
AnswerRe: MDI Without menu Pin
Joey Bloggs28-Jan-06 2:40
Joey Bloggs28-Jan-06 2:40 
GeneralRe: MDI Without menu Pin
bruspark9-Apr-06 23:28
bruspark9-Apr-06 23:28 
GeneralRe: MDI Without menu Pin
Joey Bloggs10-Apr-06 19:49
Joey Bloggs10-Apr-06 19:49 
QuestionHow to put IStream into IDataObject Pin
saravana pandy27-Jan-06 23:19
saravana pandy27-Jan-06 23:19 
AnswerRe: How to put IStream into IDataObject Pin
Stephen Hewitt28-Jan-06 1:04
Stephen Hewitt28-Jan-06 1:04 
GeneralRe: How to put IStream into IDataObject Pin
saravana pandy28-Jan-06 1:21
saravana pandy28-Jan-06 1:21 
GeneralRe: How to put IStream into IDataObject Pin
Stephen Hewitt28-Jan-06 1:51
Stephen Hewitt28-Jan-06 1:51 
GeneralRe: How to put IStream into IDataObject Pin
saravana pandy28-Jan-06 2:01
saravana pandy28-Jan-06 2:01 
GeneralRe: How to put IStream into IDataObject Pin
Stephen Hewitt28-Jan-06 2:19
Stephen Hewitt28-Jan-06 2:19 
GeneralRe: How to put IStream into IDataObject Pin
saravana pandy28-Jan-06 2:32
saravana pandy28-Jan-06 2:32 
GeneralRe: How to put IStream into IDataObject Pin
Stephen Hewitt28-Jan-06 18:05
Stephen Hewitt28-Jan-06 18:05 
Questionhelp!!!!!!! Pin
V.G27-Jan-06 20:19
V.G27-Jan-06 20:19 
AnswerRe: help!!!!!!! Pin
Bobby Dreamer198527-Jan-06 22:47
Bobby Dreamer198527-Jan-06 22:47 

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.