Solved

Customising CFileDialog

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Tab names are off by one 5 54
no14 challenge 14 74
has77  challenge 9 99
firstChar challenge 13 135
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

696 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