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

C / C++ / MFC

 
AnswerRe: Moving controls on a dialog Pin
David Crow21-Sep-05 3:12
David Crow21-Sep-05 3:12 
AnswerRe: Moving controls on a dialog Pin
prasad_som21-Sep-05 3:15
prasad_som21-Sep-05 3:15 
GeneralRe: Moving controls on a dialog Pin
andrewtruckle21-Sep-05 3:23
andrewtruckle21-Sep-05 3:23 
AnswerRe: Moving controls on a dialog Pin
Rage21-Sep-05 3:18
professionalRage21-Sep-05 3:18 
GeneralRe: Moving controls on a dialog Pin
bugDanny21-Sep-05 4:56
bugDanny21-Sep-05 4:56 
QuestionInserting values into tree recursively Pin
rajeevktripathi21-Sep-05 1:54
rajeevktripathi21-Sep-05 1:54 
AnswerRe: Inserting values into tree recursively Pin
David Crow21-Sep-05 3:18
David Crow21-Sep-05 3:18 
QuestionRe: Inserting values into tree recursively Pin
rajeevktripathi21-Sep-05 3:49
rajeevktripathi21-Sep-05 3:49 
Infact I want to insert a node into the tree

- Then all the subnodes of that node will be called recursively and being inserted into the tree.


What I am doing is as follows


<br />
<br />
/*------------------------------------------------------------------------------<br />
<br />
<br />
int iFLAG = 1;<br />
void CShowFolders::AddFolders(STOREFOLDERID dwFolderId)<br />
{<br />
FOLDERPROPS props;<br />
HENUMSTORE hEnum;<br />
int nIndex;<br />
<br />
hEnum = NULL;<br />
<br />
<br />
// set the size of the structure or the function return error<br />
props.cbSize = sizeof(FOLDERPROPS);<br />
<br />
HRESULT hr = m_pStoreNamespace->GetFirstSubFolder(dwFolderId, &props, &hEnum);<br />
<br />
<br />
while(SUCCEEDED(hr) && hr != S_FALSE && hEnum != NULL)<br />
{<br />
<br />
if(iFLAG)<br />
htMailFolder=TreeObj.InsertItem(props.szName,TVI_ROOT,NULL);<br />
else<br />
TreeObj.InsertItem(props.szName,htMailFolder);<br />
<br />
if(nIndex != LB_ERR && nIndex != LB_ERRSPACE)<br />
{<br />
// set the folder id as the data of the item<br />
m_listFolder.SetItemData(nIndex, props.dwFolderId);<br />
<br />
TreeObj.SetItemData(htMailFolder,props.dwFolderId);<br />
iFLAG = 0;<br />
// add children of this folder too<br />
AddFolders(props.dwFolderId);<br />
<br />
}<br />
<br />
<br />
hr = m_pStoreNamespace->GetNextSubFolder(hEnum, &props);<br />
iFLAG = 1;<br />
}<br />
<br />
<br />
// close the enum<br />
if(hEnum) {<br />
m_pStoreNamespace->GetSubFolderClose(hEnum);<br />
<br />
}<br />
}<br />
<br />
/*---------------------------------------------------------------------<br />
<br />
<br />
<br />


Now I want to insert all the local folders of Outlook Express into the tree as it looked into the Outlook Express .


But The tree from this code is not resembling to that one.


So please tell how should I modify programm to look like Outlook Express.

From the code it is clear that it enumerates all the folders & subfolders of outlook exress , So I want to display it in the tree form.


Note that

"m_pStoreNamespace is the object of Interface IStoreNameSpace"

Please reply.
AnswerRe: Inserting values into tree recursively Pin
David Crow21-Sep-05 4:05
David Crow21-Sep-05 4:05 
QuestionRe: Inserting values into tree recursively Pin
rajeevktripathi21-Sep-05 18:15
rajeevktripathi21-Sep-05 18:15 
AnswerRe: Inserting values into tree recursively Pin
David Crow22-Sep-05 2:27
David Crow22-Sep-05 2:27 
QuestionUsing Reliable UDP Pin
V.G21-Sep-05 1:41
V.G21-Sep-05 1:41 
AnswerRe: Using Reliable UDP Pin
Mohammad A Gdeisat21-Sep-05 5:34
Mohammad A Gdeisat21-Sep-05 5:34 
QuestionUsing ActiveX wrapper class in MFC console Pin
yccheok21-Sep-05 0:12
yccheok21-Sep-05 0:12 
AnswerRe: Using ActiveX wrapper class in MFC console Pin
Calc2021-Sep-05 2:56
Calc2021-Sep-05 2:56 
GeneralRe: Using ActiveX wrapper class in MFC console Pin
yccheok22-Sep-05 15:32
yccheok22-Sep-05 15:32 
QuestionWho have used the component called ProEssentials Pin
sssmmmyyy20-Sep-05 23:58
sssmmmyyy20-Sep-05 23:58 
QuestionHow??Max,size of Dialog Box Pin
a_david12320-Sep-05 23:39
a_david12320-Sep-05 23:39 
AnswerRe: How??Max,size of Dialog Box Pin
John R. Shaw21-Sep-05 0:49
John R. Shaw21-Sep-05 0:49 
AnswerRe: How??Max,size of Dialog Box Pin
bugDanny21-Sep-05 3:00
bugDanny21-Sep-05 3:00 
QuestionDialog inside MDI application Pin
Russell'20-Sep-05 23:31
Russell'20-Sep-05 23:31 
AnswerRe: Dialog inside MDI application Pin
toxcct21-Sep-05 1:22
toxcct21-Sep-05 1:22 
GeneralRe: Dialog inside MDI application Pin
Russell'21-Sep-05 1:40
Russell'21-Sep-05 1:40 
AnswerRe: Dialog inside MDI application Pin
prasad_som21-Sep-05 2:22
prasad_som21-Sep-05 2:22 
GeneralRe: Dialog inside MDI application Pin
Russell'21-Sep-05 4:40
Russell'21-Sep-05 4:40 

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.