Solved

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

Posted on 1997-09-16
2
292 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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.

771 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

12 Experts available now in Live!

Get 1:1 Help Now