🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #16556

Registry and TreeNodes

#16556
From: Greg Stantin
Date: Wed, 07 May 2003 04:24
26 lines
1739 bytes
I have the registry displayed just like regedit in a TreeView

My Computer
    HKEY_CLASSES_ROOT
    HKEY_CURRENT_USER
    HKEY_LOCAL_MACHINE
    HKEY_USERS
    HKEY_CURRENT_CONFIG

I am trying to get the rootkeys of the parent and not the actual
root of the tree.  For example, if i select an item far below
HKEY_CURRENT_USER, i want it to return HKEY_CURRENT_USER
as the parent node, and not My Computer.

This is what i have.
void __fastcall TForm1::TreeView1Expanding(TObject *Sender,
      TTreeNode *Node, bool &AllowExpansion)
{
LPCSTR NameLBSelect = Node->Parent->Text.c_str();

Is there any way that i can get the parent on level 1, without going
to the actual root of the tree, i dont need the rootnode as the
parent.


Thanks in advance
Technical Details
Message-ID: <3eb88a85@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,f0b277f95868ae0a,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-05-06 21:26:46 PST
Reply-To: "Greg Stantin" <gstantin@stantonassoc.com>
From: "Greg Stantin" <gstantin@stantonassoc.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Registry and TreeNodes
Date: Tue, 6 May 2003 23:24:53 -0500
Lines: 28
Organization: Stantin Assoc.
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 65.69.10.89
Message-ID: <3eb88a85@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1052281477 65.69.10.89 (6 May 2003 21:24:37 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail