Solved

Customised CFileDialog does not get refresh

Posted on 2001-06-23
1
325 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
Comment Utility
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Login Script to Copy Folders 12 20
xyBalance chalenge 58 88
Process filename extension 3 154
tripleUp challenge 7 65
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

763 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

11 Experts available now in Live!

Get 1:1 Help Now