Solved

Customising CFileDialog

Posted on 1998-11-09
3
262 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
repeatSeparator  java  challenge 13 56
How to know only "File created" with EventLog 3 32
withoutTen challenge 14 100
Detect file exist or not 3 133
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…
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

867 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now