| Re: GetPrivateProfilString() |
|
 |
|
 |
|
 |
|
 |
Group: borland.public.cppbuilder.nativeapi · Group Profile
Author: Michael.RuehlingMichael.Ruehling Date: May 2, 2008 14:25
Hi,
I will try this at once.
M.
On Fri, 02 May 2008 08:33:21 -0700, Bob Gonder
wrote:
>Michael.Ruehling@t-online.de wrote:
>
>> while (*lpTemp)
>> {
>> cur = TreeView1->Items->Item[0];
>> TreeView1->Items->Add(cur,szBuffer);
>> cur = TreeView1->Items->Item[1];
>> TreeView1->Items->AddChild(cur,szBuffer);
>> }
>> TreeView1->AlphaSort();
>>}
>>
>>Level 1 nodes are created perfectly and level 2 Nodes
>>are createdt perfectly but are stored under the wrong
>>head-Nodes. Why? can anyone help?
>
>You are adding to node cur. Cur is always 0 or 1.
>You want to AddChild to the last Add node:
>
> cur = TreeView1->Items->Item[0];
> cur = TreeView1->Items->Add(cur,szBuffer);
> TreeView1->Items->AddChild(cur,szBuffer);
>
|