Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 1997-09-16
2
Medium Priority
?
329 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
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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 …
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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 shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Suggested Courses

877 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