List HDD files in CListView
-
-
Is there any method to list files from local HDD into a CListView, but, most important, have two points: 1. Have an item icon just like you see in standard windows explorer. 2. Have right click menu just like you have in standard windows explorer.
-
Yes, all of this is possible, but you will need to write the code to do it. Lots of suggestions for the first part in list directory c - Google Search[^].
-
Is there any method to list files from local HDD into a CListView, but, most important, have two points: 1. Have an item icon just like you see in standard windows explorer. 2. Have right click menu just like you have in standard windows explorer.
_Flaviu wrote:
1. Have an item icon just like you see in standard windows explorer.
See here.
_Flaviu wrote:
2. Have right click menu just like you have in standard windows explorer.
See here.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
-
No, there is no problem listing files found on HDD, but setup them an icon (in CListView of course) just like Windows Explorer does, and then have the same contextual menu like Windows Explorer has ...
-
_Flaviu wrote:
1. Have an item icon just like you see in standard windows explorer.
See here.
_Flaviu wrote:
2. Have right click menu just like you have in standard windows explorer.
See here.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
I am really sorry because I was not clear on my first post. Let say I list a text file in my CListView. And I must setup an icon to that item, but that icon should be exactly like in windows explorer. I mean, if a text file in windows explorer has a Notepadd++ icon, I wish the same icon to my CListView. The same matter if I list a pdf file ... if this file has a pdf icon in windows explorer, I wish to have the same icon to the item that list that pdf file in my CListView. And if I see in windows explorer a contextual menu, I wish to have the same contextual menu in my CListView.
-
I am really sorry because I was not clear on my first post. Let say I list a text file in my CListView. And I must setup an icon to that item, but that icon should be exactly like in windows explorer. I mean, if a text file in windows explorer has a Notepadd++ icon, I wish the same icon to my CListView. The same matter if I list a pdf file ... if this file has a pdf icon in windows explorer, I wish to have the same icon to the item that list that pdf file in my CListView. And if I see in windows explorer a contextual menu, I wish to have the same contextual menu in my CListView.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
-
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles