Solved

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

Posted on 1997-09-16
2
298 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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Separate into files by filename 12 82
Expand macro to ask for filename column 8 37
deburging in oracle form 12 99
sum67 challenge 35 98
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: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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 Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

777 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