Recreating views...
-
It's definitely possible. If you provide your email address, I'll send you some VC6 code I have.
ok, i'm actually i'm working on a Windows Explorer like application. The web browser control is used in right pane. Which emulates the list view exactly similar to that in Windows Explorer. But, when some drive/folder selected in it, that folder is actually marked as 'in use' by Windows (i.e. some file handles must be kept open by Windows). Even SetCurrentDirectory() doesn't works. Now, I think that whenever a new drive is to be shown, i can destroy the old view and recreate new one...
-
hi, i have a MFC Explorer style application with doc/view architecture.... is it possible to delete (free or release) current left and right views and recreate them at a particular instant (e.g. when a button is clicked.)?
Couldn't you just hide them until you want to use them again? Or is it a necessity to free/release them? ---modified I saw your post to led mike, makes sense now :-O
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
-
Couldn't you just hide them until you want to use them again? Or is it a necessity to free/release them? ---modified I saw your post to led mike, makes sense now :-O
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
it's certainly necessary to release them and to recreate them... do u know how to do that?
-
ok, i'm actually i'm working on a Windows Explorer like application. The web browser control is used in right pane. Which emulates the list view exactly similar to that in Windows Explorer. But, when some drive/folder selected in it, that folder is actually marked as 'in use' by Windows (i.e. some file handles must be kept open by Windows). Even SetCurrentDirectory() doesn't works. Now, I think that whenever a new drive is to be shown, i can destroy the old view and recreate new one...
-
Michael Chapman wrote:
So the OP needs to pass your test before you'll offer any help? That's the spirit.
Many of them don't pass the test.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001 -
ok, i'm actually i'm working on a Windows Explorer like application. The web browser control is used in right pane. Which emulates the list view exactly similar to that in Windows Explorer. But, when some drive/folder selected in it, that folder is actually marked as 'in use' by Windows (i.e. some file handles must be kept open by Windows). Even SetCurrentDirectory() doesn't works. Now, I think that whenever a new drive is to be shown, i can destroy the old view and recreate new one...
I guess I don't understand what you're asking for. When the user selects a folder in the left pane, files (and sub-folders) show up in the right pane. Simply doing a FileFind on *.* to populate the right pane should be sufficient, and whether those files/folders are "in use by windows" is irrelevant.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001 -
I guess I don't understand what you're asking for. When the user selects a folder in the left pane, files (and sub-folders) show up in the right pane. Simply doing a FileFind on *.* to populate the right pane should be sufficient, and whether those files/folders are "in use by windows" is irrelevant.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001No, actually, instead of FindFile(), i let WebBrowser navigate to the desired location (e.g. C:\). This shows the exact ListView similar to what we see in Windows Explorer. I even get bonus items like Task Lists, Contextual Menus etc. But it can be using notification functions to know about changes in that folder and also displays 'Details', such as preview of images etc., and for that opening files in necessary... i think.
-
Michael Chapman wrote:
needs to pass your test
led mike wrote:
Also I try not to help people produce the wrong solution for the problem they are solving.
Thanks for ignoring that part
Michael Chapman wrote:
That's the spirit.
I guess you are after a flame war eh?
-
Michael Chapman wrote:
needs to pass your test
led mike wrote:
Also I try not to help people produce the wrong solution for the problem they are solving.
Thanks for ignoring that part
Michael Chapman wrote:
That's the spirit.
I guess you are after a flame war eh?
-
You, sir, are a beautiful person and your holistic approach to righting the world's ills should be celebrated. All apologies.