Solved

Customising CFileDialog

Posted on 1998-11-09
3
294 Views
Last Modified: 2013-11-20
I am now customising CFileDialog.
I want to get the notification of EN_CHANGE in the file
name editbox.
Can you help me?
Thank you very much!
0
Comment
Question by:liufeng
[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
3 Comments
 
LVL 2

Expert Comment

by:cyrilbdt
ID: 1324438
0
 
LVL 2

Accepted Solution

by:
wyy_cq earned 100 total points
ID: 1324439
MFC not support this directly.
if you need not handle the EN_CHANGE message but need to know
the file select change,
you may Override virtual void OnFileNameChange( );
in CFileDialog's sun class

an other way:
program a sun class of CWnd and then SubClass the EditBox Window

0
 
LVL 1

Expert Comment

by:sudhirbrat
ID: 1324440
To customize the standard file dialog(open / save), use the SDK functions like
BOOL GetOpenFileName(
  LPOPENFILENAME lpofn   // address of structure with initialization  data
);   or
BOOL GetSaveFileName(
  LPOPENFILENAME lpofn   // address of structure with initialization data
);

In the OPENFILENAME structure u can specify ur own procedure(hook) for the file dialog.
And u will get all messages and notifications in the hook procedure.

Refer to online help for OPENFILENAME structure.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

691 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