Click here to Skip to main content
15,915,611 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: EditBox - Auto Scroll Pin
Anonymous10-Nov-04 4:48
Anonymous10-Nov-04 4:48 
GeneralRe: EditBox - Auto Scroll Pin
David Crow10-Nov-04 5:08
David Crow10-Nov-04 5:08 
GeneralRe: EditBox - Auto Scroll Pin
Anonymous10-Nov-04 20:11
Anonymous10-Nov-04 20:11 
GeneralRe: EditBox - Auto Scroll Pin
Anonymous11-Nov-04 1:55
Anonymous11-Nov-04 1:55 
GeneralRe: EditBox - Auto Scroll Pin
David Crow11-Nov-04 3:47
David Crow11-Nov-04 3:47 
GeneralRe: EditBox - Auto Scroll Pin
Nicknz2-Feb-05 16:23
Nicknz2-Feb-05 16:23 
GeneralRe: EditBox - Auto Scroll Pin
BenBaris11-Aug-05 15:15
BenBaris11-Aug-05 15:15 
GeneralSecond Window after first window Pin
sampal9-Nov-04 23:15
sampal9-Nov-04 23:15 
Hello friends
I am facing the following simple problem (as I am very new to VC++). The purpose is to display second window/screen after the user clicks 'OK' in the first window/screen. But the problem is that the second window fails to get displayed. The code has been written as below...
Please help....
Thanks

BOOL CMyDialog::InitInstance()
{
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);

AfxEnableControlContainer();

#ifdef _AFXDLL
Enable3dControls();
#else
Enable3dControlsStatic();
#endif

CDialogfirstwindow dlg1;
m_pMainWnd = &dlg1;
int nResponse1 = dlg1.DoModal();
// The first window is successfully displayed
if (nResponse1 == IDOK)
{
//#if defined REQUIRED_CODE :
// This code has been introduced thinking that new window
// may need re-intialization..
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);

AfxEnableControlContainer();

#ifdef _AFXDLL
Enable3dControls();
#else
Enable3dControlsStatic();
#endif
// #endif
CDialogsecondwindow dlg2;
// The Second window fails to get displayed
m_pMainWnd = &dlg2;
int nResponse2 = dlg2.DoModal();
if (nResponse2 == IDOK)
{
}
else if (nResponse2 == IDCANCEL)
{
}
}
else if (nResponse1 == IDCANCEL)
{
}
return FALSE;
}



GeneralRe: Second Window after first window Pin
David Crow10-Nov-04 3:26
David Crow10-Nov-04 3:26 
GeneralRe: Second Window after first window Pin
sampal10-Nov-04 5:30
sampal10-Nov-04 5:30 
GeneralCombining properties of Modal && modeless dialogs Pin
Cedric Moonen9-Nov-04 22:48
Cedric Moonen9-Nov-04 22:48 
GeneralRe: Combining properties of Modal && modeless dialogs Pin
Nitron10-Nov-04 10:54
Nitron10-Nov-04 10:54 
GeneralRe: Combining properties of Modal && modeless dialogs Pin
Cedric Moonen15-Nov-04 1:53
Cedric Moonen15-Nov-04 1:53 
GeneralProcess handle table access Pin
adnan pathan9-Nov-04 22:04
adnan pathan9-Nov-04 22:04 
QuestionHow MSN detects network connection Pin
Mike Melnikov9-Nov-04 21:45
Mike Melnikov9-Nov-04 21:45 
GeneralBold font in CTreeCtrl truncates text Pin
anderslundsgard9-Nov-04 21:16
anderslundsgard9-Nov-04 21:16 
GeneralRe: Bold font in CTreeCtrl truncates text Pin
Ted Ferenc9-Nov-04 21:37
Ted Ferenc9-Nov-04 21:37 
GeneralRe: Bold font in CTreeCtrl truncates text Pin
anderslundsgard9-Nov-04 21:46
anderslundsgard9-Nov-04 21:46 
GeneralRe: Bold font in CTreeCtrl truncates text Pin
Ted Ferenc9-Nov-04 21:54
Ted Ferenc9-Nov-04 21:54 
GeneralRe: Bold font in CTreeCtrl truncates text Pin
Robert M Greene10-Nov-04 8:17
Robert M Greene10-Nov-04 8:17 
Generaldetecting internet enabled program Pin
Anonymous9-Nov-04 20:39
Anonymous9-Nov-04 20:39 
GeneralBlueTooth question Pin
eli150219799-Nov-04 20:32
eli150219799-Nov-04 20:32 
GeneralRe: BlueTooth question Pin
Andrew Walker9-Nov-04 23:05
Andrew Walker9-Nov-04 23:05 
GeneralBlueTooth question Pin
eli150219799-Nov-04 20:29
eli150219799-Nov-04 20:29 
Generaldisplay korean characters inside mfc dialog box Pin
virtualweb9-Nov-04 20:11
virtualweb9-Nov-04 20:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.