![]() |
|
#1
|
|||
|
|||
Adding A Dialog to Single Doc in Visual MFCim using the single doc and i have created a Dialog i intend to display it when i run the program how do i do that? i mean attach it to my main interface?..... any i deas??
|
|
#2
|
||||
|
||||
|
Have you created the dialog and its class, I assume you did.
in your SDIview or Mainframe class, declare a new class of your dialog class. CPP / C++ / C Code:
CPP / C++ / C Code:
CPP / C++ / C Code:
__________________
When you say "I wrote a program that crashed Windows," people just stare at you blankly and say "Hey, I got those with the system, for free." Linus Torvalds |
|
#3
|
|||
|
|||
|
Thanks i have created my dialog, created a class named it MyDialog but when u say in the implementation where exactly do i add the
CPP / C++ / C Code:
|
|
#4
|
|||
|
|||
|
Quote:
Thanks i have created my dialog, created a class named it MyDialog but when u say in the implementation where exactly do i add the CPP / C++ / C Code:
|
|
#5
|
||||
|
||||
|
It depends on when you want to pop the dialog. Lets say that the dialog should pop when user clicks on a button in the toolbar, the ID of the button is ID_POPDIALOG.
CPP / C++ / C Code:
__________________
When you say "I wrote a program that crashed Windows," people just stare at you blankly and say "Hey, I got those with the system, for free." Linus Torvalds |
|
#6
|
|||
|
|||
|
Quote:
what i want is that when i run the program the dialog will be already there. when the menu is displayed the dialog should also be there (attaching the dialog to the menu) thanx |
|
#7
|
||||
|
||||
|
Thats Kind of hard to do.. Just follow the instructions below:
CPP / C++ / C Code:
__________________
When you say "I wrote a program that crashed Windows," people just stare at you blankly and say "Hey, I got those with the system, for free." Linus Torvalds |
|
#8
|
|||
|
|||
|
Quote:
will try this one thanx |
Recent GIDBlog
Python ebook by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Tutorial] GUI programming with FLTK | dsmith | FLTK Forum | 10 | 03-Oct-2005 16:41 |
| Visual C++ Edge Detection | surgio | MS Visual C++ / MFC Forum | 5 | 26-Mar-2005 02:46 |
| Art and Maths.....a single hypervoxel | paulselhi | Graphics Forum | 0 | 10-Mar-2004 07:11 |
| Convertin C++ to eMbedded Visual C++ | kiara | C++ Forum | 0 | 14-Jan-2004 02:05 |
| Convertin C++ to eMbedded Visual C++ | jbalart | C++ Forum | 0 | 23-Dec-2003 07:44 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The