Click here to Skip to main content
16,016,605 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: help... can anyone... Pin
Jose Lamas Rios22-Aug-05 20:26
Jose Lamas Rios22-Aug-05 20:26 
GeneralRe: help... can anyone... Pin
moodsey21122-Aug-05 21:15
moodsey21122-Aug-05 21:15 
GeneralRe: help... can anyone... Pin
MailtoGops22-Aug-05 22:18
MailtoGops22-Aug-05 22:18 
GeneralRe: help... can anyone... Pin
moodsey211123-Aug-05 3:05
sussmoodsey211123-Aug-05 3:05 
GeneralFileAccess using scattergather Pin
Ritesh S.22-Aug-05 19:46
Ritesh S.22-Aug-05 19:46 
GeneralRe: FileAccess using scattergather Pin
cmk23-Aug-05 9:37
cmk23-Aug-05 9:37 
QuestionWM_InitMenuPopup handler in dialog? Pin
sayup22-Aug-05 19:45
sayup22-Aug-05 19:45 
Questionhow to set selected node of treeview through code Pin
/*Trucker*\22-Aug-05 19:05
/*Trucker*\22-Aug-05 19:05 
Hello,

In my Application I made a treeview that displays the system directory structure - like the tree on the left in windows explorer. I also have an Open button that opens a file (OpenFileDialog). So basically my user can browse for a file through the directory tree (the treeview) or through the Open button.

My problem is this - If the user chooses to use the Open button to open a file, when she/he does so, I want the treeview to reflect the location of the opened file. That is, to expand appropriately from the root and select the folder that contains the open file.

So far I have tried several approaches but none led to a solutionD'Oh! | :doh: ...
1) I looked in the .NET Framework, in TreeView class, for a function that takes a full path and is able to expand to and select the resulting directory. I could not find such a function.
2) I was successfull in parsing the full path I got from the open file dialog window into directories. However I found no functions in the .NET Framework that could help me track from the root to the last directory of the treeview.

If anybody knows how to solve this problem or has an approach to solving it, I would appreciate hearing it greatly.

TraileR ParK LifE 4Ever
AnswerRe: how to set selected node of treeview through code Pin
Christian Graus22-Aug-05 19:27
protectorChristian Graus22-Aug-05 19:27 
GeneralRe: how to set selected node of treeview through code Pin
/*Trucker*\23-Aug-05 6:17
/*Trucker*\23-Aug-05 6:17 
AnswerRe: how to set selected node of treeview through code Pin
Jose Lamas Rios22-Aug-05 20:34
Jose Lamas Rios22-Aug-05 20:34 
Generalneed help in CListCtrl Pin
firebolt7722-Aug-05 18:17
firebolt7722-Aug-05 18:17 
GeneralRe: need help in CListCtrl Pin
Christian Graus22-Aug-05 18:24
protectorChristian Graus22-Aug-05 18:24 
GeneralRe: need help in CListCtrl Pin
firebolt7722-Aug-05 18:57
firebolt7722-Aug-05 18:57 
GeneralRe: need help in CListCtrl Pin
Christian Graus22-Aug-05 19:01
protectorChristian Graus22-Aug-05 19:01 
GeneralRe: need help in CListCtrl Pin
firebolt7722-Aug-05 20:05
firebolt7722-Aug-05 20:05 
GeneralRe: need help in CListCtrl Pin
ThatsAlok22-Aug-05 22:57
ThatsAlok22-Aug-05 22:57 
GeneralRe: need help in CListCtrl Pin
firebolt7723-Aug-05 19:42
firebolt7723-Aug-05 19:42 
GeneralRe: need help in CListCtrl Pin
ThatsAlok23-Aug-05 19:58
ThatsAlok23-Aug-05 19:58 
GeneralUpdating a field in Access database Pin
joy00722-Aug-05 18:12
joy00722-Aug-05 18:12 
GeneralRe: Updating a field in Access database Pin
Jose Lamas Rios22-Aug-05 18:27
Jose Lamas Rios22-Aug-05 18:27 
GeneralRecieving a file over TCP Pin
Member 183908222-Aug-05 17:56
Member 183908222-Aug-05 17:56 
GeneralRe: Recieving a file over TCP Pin
Jose Lamas Rios22-Aug-05 18:04
Jose Lamas Rios22-Aug-05 18:04 
GeneralRe: Recieving a file over TCP Pin
Member 183908222-Aug-05 18:13
Member 183908222-Aug-05 18:13 
GeneralRe: Recieving a file over TCP Pin
Jose Lamas Rios22-Aug-05 19:10
Jose Lamas Rios22-Aug-05 19:10 

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.