Discussion:
how to change title in open file dialog of a SDI application
(too old to reply)
Z.K.
2006-07-16 10:14:25 UTC
Permalink
When I click on the file folder on the toolbar, a dialog for opening
files comes up. I would like to be able to change the title of the
dialog as well as the caption of the button. How would I do this?

Z.K.
Scott McPhillips [MVP]
2006-07-16 14:19:35 UTC
Permalink
Post by Z.K.
When I click on the file folder on the toolbar, a dialog for opening
files comes up. I would like to be able to change the title of the
dialog as well as the caption of the button. How would I do this?
If you have not already done so, install the MFC library source code
from your setup disk. This will help a lot in understanding how things
work and in debugging.

Follow the MFC code starting at CDocument::OnFileOpen to see how it
displays the File Open dialog. You can replace this code with your own
similar code. When you create the CFileDialog you can initialize its
m_ofn member to customize many options.
--
Scott McPhillips [VC++ MVP]
Z.K.
2006-07-16 20:31:17 UTC
Permalink
Post by Scott McPhillips [MVP]
Post by Z.K.
When I click on the file folder on the toolbar, a dialog for opening
files comes up. I would like to be able to change the title of the
dialog as well as the caption of the button. How would I do this?
If you have not already done so, install the MFC library source code
from your setup disk. This will help a lot in understanding how things
work and in debugging.
Follow the MFC code starting at CDocument::OnFileOpen to see how it
displays the File Open dialog. You can replace this code with your own
similar code. When you create the CFileDialog you can initialize its
m_ofn member to customize many options.
Ok, well I was trying to use what was already available in the SDI, but
maybe I should just use the SHBrowseForFolder instead. Thanks anyway.

Z.K.

Loading...