Click here to Skip to main content
15,890,973 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Proverbial good example of CTreeCtrl Pin
federico.strati5-Nov-10 3:38
federico.strati5-Nov-10 3:38 
JokeRe: Proverbial good example of CTreeCtrl Pin
CPallini5-Nov-10 3:46
mveCPallini5-Nov-10 3:46 
GeneralRe: Proverbial good example of CTreeCtrl Pin
federico.strati5-Nov-10 3:59
federico.strati5-Nov-10 3:59 
GeneralRe: Proverbial good example of CTreeCtrl Pin
David Crow5-Nov-10 4:03
David Crow5-Nov-10 4:03 
GeneralRe: Proverbial good example of CTreeCtrl Pin
CPallini5-Nov-10 4:12
mveCPallini5-Nov-10 4:12 
GeneralRe: Proverbial good example of CTreeCtrl Pin
Sauro Viti5-Nov-10 6:40
professionalSauro Viti5-Nov-10 6:40 
GeneralRe: Proverbial good example of CTreeCtrl Pin
David Crow5-Nov-10 4:00
David Crow5-Nov-10 4:00 
QuestionChanging initial directory on File Open Dialog in MFC Pin
Ed The C4-Nov-10 7:48
Ed The C4-Nov-10 7:48 
I cannot find a way to force an OpenFileDialog under Windows 7, Visual Studio 2010 C++ to always open the a folder of my choosing. The documentation for OPENFILENAME structure states for Windows 7 "If lpstrInitialDir has the same value as was passed the first time the application used an Open or Save As dialog box, the path most recently selected by the user is used as the initial directory."

I cannot find a way to override this - I have a set directory I always want to open to no matter what.
Of course I am always setting lpstrInitialDir to that folder. That works the first time, but as it says above, next time it opens to the last folder the user selected.

I saw a few C#, .NET flags in other posts to change this, but nothing I can find for MFC/C++.

Any ideas appreciated! TIA
AnswerRe: Changing initial directory on File Open Dialog in MFC Pin
Code-o-mat4-Nov-10 8:12
Code-o-mat4-Nov-10 8:12 
AnswerRe: Changing initial directory on File Open Dialog in MFC Pin
«_Superman_»4-Nov-10 8:31
professional«_Superman_»4-Nov-10 8:31 
GeneralRe: Changing initial directory on File Open Dialog in MFC [modified] Pin
Ed The C5-Nov-10 6:20
Ed The C5-Nov-10 6:20 
QuestionMessage Removed Pin
3-Nov-10 23:52
piul3-Nov-10 23:52 
AnswerRe: How to check if char* is a number Pin
CPallini4-Nov-10 0:03
mveCPallini4-Nov-10 0:03 
GeneralRe: How to check if char* is a number Pin
piul4-Nov-10 0:08
piul4-Nov-10 0:08 
GeneralRe: How to check if char* is a number Pin
Maximilien4-Nov-10 0:09
Maximilien4-Nov-10 0:09 
GeneralRe: How to check if char* is a number Pin
piul4-Nov-10 0:30
piul4-Nov-10 0:30 
QuestionRe: How to check if char* is a number Pin
CPallini4-Nov-10 0:51
mveCPallini4-Nov-10 0:51 
AnswerRe: How to check if char* is a number Pin
piul4-Nov-10 1:30
piul4-Nov-10 1:30 
AnswerRe: How to check if char* is a number [modified] Pin
Alain Rist4-Nov-10 1:44
Alain Rist4-Nov-10 1:44 
GeneralRe: How to check if char* is a number Pin
federico.strati4-Nov-10 0:11
federico.strati4-Nov-10 0:11 
QuestionQuery For CFileDialog? Pin
Le@rner3-Nov-10 20:43
Le@rner3-Nov-10 20:43 
AnswerRe: Query For CFileDialog? Pin
Maximilien3-Nov-10 21:30
Maximilien3-Nov-10 21:30 
AnswerRe: Query For CFileDialog? Pin
GAJERA3-Nov-10 21:35
GAJERA3-Nov-10 21:35 
QuestionRe: Query For CFileDialog? [modified] Pin
David Crow4-Nov-10 2:58
David Crow4-Nov-10 2:58 
AnswerRe: Query For CFileDialog? Pin
Alain Rist4-Nov-10 3:56
Alain Rist4-Nov-10 3:56 

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.