|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Ziff Davis Enterprise Virtual Tradeshows: Hot Topics, Cutting Edge Technology, Real-time Interaction with IT Professionals. Learn more at ziffdavisvts.com
|
|
#1
|
|||
|
|||
|
New Dialog
Can anyone help us out here
I want to create a new Dialog from the existing base class Dialog Ive added a new Dialog to my resources and registered with class wizard but im have trouble instantiating the new form My Dialog is called CMyDialog and in doing this CMyDialog MyDlg(this); int nRetcode = MyDlg.DoModal(); The class im calling from is called CAboutDlg do i have to use this somewhere Mark
__________________
100 trillion calculations per nanosecond |
|
#2
|
||||
|
||||
|
Where are you instantiating the new object? Do you create it when something is clicked on or moused over, when the parent dialog is initialized...?
And what exactly is happening? Is the dialog not showing up, or are you getting error messages? If you're calling from CAboutDlg, then you won't be able to access your CMyDialog object until you open the About dialog (Help->About), assuming you're using either an SDI or MDI -type framework.
__________________
Jon Sagara "Me fail English? That's unpossible!" |
|
#3
|
|||
|
|||
|
Thanks for your reply
I had a button on one form that invokes a new Dialog but i forgot to add the include in the parent class for my new Dialog One i done that it worked Thanks Mark |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > C Programming > New Dialog |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|