Solved

Customised CFileDialog does not get refresh

Posted on 2001-06-23
1
333 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
[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
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Strange date stored 22 174
dog bark java program 15 121
centeredAverage challenge 8 185
child constructor and parent constructor, overriding and overloading 6 93
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 …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

749 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