Solved

question

Posted on 2002-03-18
1
158 Views
Last Modified: 2013-11-20
i create a new dialog resource..and wants to show this new dialog when i click on a button on the main dialog..

msvc++ ask me whether to create a new class for the resource or not. what should i choose/do ?
0
Comment
Question by:prinx
1 Comment
 
LVL 2

Accepted Solution

by:
shilpa_Jb earned 100 total points
Comment Utility
Hi,
When it asks to create new class say yes..
and give class name as CMyDialog or what ever name u want to give and select base class as CDialog.
Now look at the following code...
MainDialog.h //File
#include Mydialog.h
{
public:
CMyDialog m_dialg;//create member variable of the new dialog class.
};
MainDialog.cpp//File
Say u have onbuttonclick method as
void MainDialog::OnButtonClick()
{
 m_dialg.DoModal();
}
That should show a new dialog when u click a button.
hope that does ur job.
-Shilpa
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

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…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

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

11 Experts available now in Live!

Get 1:1 Help Now