Click here to Skip to main content
15,915,858 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Using a Message-Only Window to Receive Device Change Notification Messages Pin
Luc Pattyn5-Nov-10 5:32
sitebuilderLuc Pattyn5-Nov-10 5:32 
GeneralRe: Using a Message-Only Window to Receive Device Change Notification Messages Pin
Jim Fell5-Nov-10 5:41
Jim Fell5-Nov-10 5:41 
GeneralRe: Using a Message-Only Window to Receive Device Change Notification Messages Pin
Luc Pattyn5-Nov-10 5:49
sitebuilderLuc Pattyn5-Nov-10 5:49 
AnswerRe: Using a Message-Only Window to Receive Device Change Notification Messages Pin
Luc Pattyn8-Nov-10 12:17
sitebuilderLuc Pattyn8-Nov-10 12:17 
QuestionWhy IMediaSeeking fails to seek while filter graph is already running? Pin
Chesnokov Yuriy5-Nov-10 2:17
professionalChesnokov Yuriy5-Nov-10 2:17 
QuestionRe: Why IMediaSeeking fails to seek while filter graph is already running? Pin
CPallini5-Nov-10 3:32
mveCPallini5-Nov-10 3:32 
AnswerRe: Why IMediaSeeking fails to seek while filter graph is already running? Pin
Chesnokov Yuriy5-Nov-10 3:55
professionalChesnokov Yuriy5-Nov-10 3:55 
QuestionRe: Why IMediaSeeking fails to seek while filter graph is already running? Pin
CPallini5-Nov-10 4:13
mveCPallini5-Nov-10 4:13 
AnswerRe: Why IMediaSeeking fails to seek while filter graph is already running? Pin
Chesnokov Yuriy5-Nov-10 5:50
professionalChesnokov Yuriy5-Nov-10 5:50 
QuestionProverbial good example of CTreeCtrl Pin
federico.strati4-Nov-10 23:56
federico.strati4-Nov-10 23:56 
AnswerRe: Proverbial good example of CTreeCtrl Pin
Sauro Viti5-Nov-10 1:41
professionalSauro Viti5-Nov-10 1:41 
GeneralRe: Proverbial good example of CTreeCtrl Pin
federico.strati5-Nov-10 2:51
federico.strati5-Nov-10 2:51 
GeneralRe: Proverbial good example of CTreeCtrl Pin
CPallini5-Nov-10 3:04
mveCPallini5-Nov-10 3:04 
GeneralRe: Proverbial good example of CTreeCtrl PinPopular
David Crow5-Nov-10 3:09
David Crow5-Nov-10 3:09 
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 

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.