Title: RE: [msvc] shortcut path

This may be more trouble than it's worth, but how about:

1) derive from CDocManager to get control of
CDocManager::DoPromptFileName().
2) copy the existing code for CDocManager::DoPromptFileName() into your
routine, except that you substitute your own class based on CFileDialog.
3) derive from CFileDialog to capture the OnOk message,
4) read the edit box then.

> -----Original Message-----
> From: BeginThread.com MSVC List [mailto:[EMAIL PROTECTED]]
> On Behalf Of Palmer, Jean L.
> Sent: Thursday, September 11, 2003 4:04 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: [msvc] shortcut path
>
>
> Well, I simplified the problem slightly in trying to get over
> some apparent
> communication problems.
>
> For instance, the CFileDialog may be a modal dialog created by
> CDocManager::DoPromptFileName (through
> CDocManager::OnFileOpen) so there's
> really no access to the individual dialog controls, to enable
> reading the
> edit box.
>
> Maybe what I need to do is employ some use of
> ::SHBrowseForFolder, and save
> that directory somewhere.  Knowing the directory for the
> shortcut is more of
> an 'enhancement' than a requirement, so if it knows the wrong
> directory then
> it (in this instance) would be more of a bother than make it
> not work right.
>

Reply via email to