Solved

question

Posted on 2002-03-18
1
159 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
ID: 6879116
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Adapt this command to show who installed 29 106
ORA-01403: no data found 43 89
difference between String.subString() and String.subSequence() 6 166
only14 challenge 19 68
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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 video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

932 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