Solved

Customising CFileDialog

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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. …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

746 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

8 Experts available now in Live!

Get 1:1 Help Now