Solved

Why my Nested Dialog Box doesn't work????

Posted on 1997-09-16
2
309 Views
Last Modified: 2013-11-19
I create a dialog resource template with a "hole" in it( a grounp box ). I set the child window with ID stc32=ox045f.
I want to put a CFileDialog box in it. But when I run the program, it only shows the CFileDialog box and nothing else
why ??? Do I need set some flag(Environment) ??
0
Comment
Question by:sl73c
[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
2 Comments
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 50 total points
ID: 1306362
The CFileDialog is a modal dialog and as such it is not designed to be used within another dialog. If you need this behavior, you will need to write the code yourself. However, at least the template can be reused. Look in your VC\Include directory for a file called FILEOPEN.DLG for the dialog template resource. But then you will need to write the code to handle the displaying and updating of the controls.
0
 

Author Comment

by:sl73c
ID: 1306363
Hi, thui

thanks for your help.
I got some questions here. I can put that CFileDialog box as a nested Dialog box in another dialog box. But my problem is
I can do it on some other machine but I can not do it on my machine. I don't know the reason.

Would you please think about it again?
Do I need to set up some enviroment flag for this?

thanks again

Jeff
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying 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

Suggested Solutions

Title # Comments Views Activity
function returning CString in a regular win32 DLL 8 216
xyBalance chalenge 58 105
conditional code and condition difference 9 87
scoreUp challenge 14 74
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
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.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

759 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