Solved

Customised CFileDialog does not get refresh

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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…
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.
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…

705 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