I am working on a directory TreeView. When I select a dir (HTREEITEM hItem) I want to get the full path to that dir in a string. Like this:
LPTSTR path; do { /* path = 'name of hItem' + \ + path; */ hItem = TreeView_GetParent(g_hwndTreeView, hItem ); } while( hItem );
My problem is the /*...*/ part. How can I do this? MFC has a command for this, but I don't use MFC.
Johan
please.....
Log in to post a comment.
I am working on a directory TreeView. When I select a dir (HTREEITEM hItem) I want to get the full path to that dir in a string. Like this:
LPTSTR path;
do
{
/* path = 'name of hItem' + \ + path; */
hItem = TreeView_GetParent(g_hwndTreeView, hItem );
}
while( hItem );
My problem is the /*...*/ part. How can I do this? MFC has a command for this, but I don't use MFC.
Johan
please.....
Johan