Solved

Customised CFileDialog does not get refresh

Posted on 2001-06-23
1
327 Views
Last Modified: 2013-11-20
VC5-SP3, on NT4-SP6.

I am attaching a template to the CFileDialog.

m_ofn.Flags |= (OFN_EXPLORER | OFN_ENABLETEMPLATE | OFN_HIDEREADONLY | OFN_FILEMUSTEXIST | OFN_PATHMUSTEXIST );

m_ofn.lpTemplateName = MAKEINTRESOURCE( IDD_MYDIALOG_TPT );

Every thing works file except when i Domodal(), not the whole CFileDialog window get 'refresh'. E.g. when i select another directory in the browser, the buttons, combo boxes, etc would disappeared.  

Any idea whats wrong?
0
Comment
Question by:leowlf
1 Comment
 
LVL 49

Accepted Solution

by:
DanRollins earned 50 total points
ID: 6222512
The controls in the dialog box IDD_MYDIALOG_TPT must have the same IDs as the standard one.  There are some consatns define for them somewhere but they arerather pointless.  Just use spy++ to get the Control IDs of the controls.

It is beat to start wth the original template and modify it:

See
How to Show a Custom Common Dialog using CFileDialog
ID: Q102332 http://support.microsoft.com/support/kb/articles/Q102/3/32.asp

-- Dan
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
How to create frequencies of a variable from SAS dataset? 10 120
Folder Comparison 12 53
pre4 challenge 19 93
Use of condition with 'serial' in ansible 2 49
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
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.
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

919 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

17 Experts available now in Live!

Get 1:1 Help Now