SHBrowseForFolder() API pb
-
i use the SHBrowseForFolder() API to prompt the user to select a folder. but i can't open the dialog in a particuliar folder. how to do that please ?
-- TTD --
The
pidlRoot
parameter of theBROWSEINFO
structure is used for that. Do a search for that member and you will find ways to manage theITEMIDLIST
required for the structure. Peace!-=- James
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
DeleteFXPFiles & CheckFavorites (Please rate this post!) -
The
pidlRoot
parameter of theBROWSEINFO
structure is used for that. Do a search for that member and you will find ways to manage theITEMIDLIST
required for the structure. Peace!-=- James
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
DeleteFXPFiles & CheckFavorites (Please rate this post!) -
i use the SHBrowseForFolder() API to prompt the user to select a folder. but i can't open the dialog in a particuliar folder. how to do that please ?
-- TTD --
super_ttd wrote:
but i can't open the dialog in a particuliar folder. how to do that please ?
Have you supplied a callback function? That is where you establish the default folder.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
-
super_ttd wrote:
but i can't open the dialog in a particuliar folder. how to do that please ?
Have you supplied a callback function? That is where you establish the default folder.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
-
DavidCrow wrote:
Have you supplied a callback function?
hu, no ! i thought callbacks were only to extend the dialog style/events management... Sir, can i ask you please to show me how you write such a function ? thank you very much for your answer
super_ttd wrote:
hu, no ! i thought callbacks were only to extend the dialog style/events management...
You can use it for whatever you need.
super_ttd wrote:
Sir, can i ask you please to show me how you write such a function ?
I could, but Googling for examples would prove a much more useful exercise.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
-
super_ttd wrote:
hu, no ! i thought callbacks were only to extend the dialog style/events management...
You can use it for whatever you need.
super_ttd wrote:
Sir, can i ask you please to show me how you write such a function ?
I could, but Googling for examples would prove a much more useful exercise.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb