Solved

Customising CFileDialog

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

773 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