?
Solved

Customizing CFileDialog (!)

Posted on 1999-01-12
4
Medium Priority
?
480 Views
Last Modified: 2013-11-20
I'm trying to customize the regular File open/ save as dialog box!
-I have to change the layout a bit, add a bitmap in the background etc. etc. -DON'T ask why! :)

I have had no problems with making my own class which inherits from CFileDialog, and I've even been able to make it process CFileDialog's messages, but that's as far as I've been able to go.. pretty new with MFC..

I want to access the resource of the dialog. -change it, and maybe add a control or two.

Can I somehow access control-variables of the controls? -What are their names?

Can I make a new dialog for the class to use? -In that case; what resource ID's must the controls have in order for the superclass to be able to use them? Where can I find that information?

Thanks beforehand
/Torbjörn Josefsson
0
Comment
Question by:toblo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 3

Expert Comment

by:plaroche
ID: 1327529
Microsoft Systems Journal, january 1998, C++ Q&A Section.

There is a good example of this, explains all the things you need to know about the file dialog.

If you can't find the article at www.msj.com, post a comment here with your email, I'll send it to you.
0
 

Author Comment

by:toblo
ID: 1327530
Thanks for the tip, but the article doesn't tell me how I can access the dialog-resources or the controls.. in fact it says that the code supplied will not work! :)

I think I would need the resource ID's or something. -Wish I could give you the points, but I can't afford it for anything less than an answer.
0
 
LVL 4

Accepted Solution

by:
nil_dib earned 200 total points
ID: 1327531
You can acces the contols with GetDlgItem().
With this method you can get the pointer to the combobox, editfield ...
The names for the controls are in <dlgs.h>
Don't forget to include this file.
Look also at www.codeguru.com for CFileDialog derived classes such
as bitmap preview dialogs.
0
 

Expert Comment

by:wwwky
ID: 1327532
you can create an own dlg and  plus in the file open/save dialog in it.
0

Featured Post

Get proactive database performance tuning online

At Percona’s web store you can order full Percona Database Performance Audit in minutes. Find out the health of your database, and how to improve it. Pay online with a credit card. Improve your database performance now!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses
Course of the Month13 days, 19 hours left to enroll

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question