Click here to Skip to main content
15,914,013 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: setting icon(120*40) to SDI Application left corner of the title Pin
Jens Doose22-Jul-03 1:28
Jens Doose22-Jul-03 1:28 
GeneralRetrieving Header and Footer using VC++ Pin
adsilva21-Jul-03 23:32
adsilva21-Jul-03 23:32 
GeneralFAQ 8.4 Pin
Andrew Walker22-Jul-03 2:14
Andrew Walker22-Jul-03 2:14 
GeneralRe: FAQ 8.4 Pin
Ryan Binns22-Jul-03 5:41
Ryan Binns22-Jul-03 5:41 
GeneralRe: FAQ 8.4 Pin
Andrew Walker22-Jul-03 5:43
Andrew Walker22-Jul-03 5:43 
GeneralRe: Retrieving Header and Footer using VC++ Pin
David Crow22-Jul-03 4:57
David Crow22-Jul-03 4:57 
GeneralRe: Retrieving Header and Footer using VC++ Pin
adsilva25-Jul-03 19:20
adsilva25-Jul-03 19:20 
GeneralProblem with more than one dialog box.. Pin
Deepak Samuel21-Jul-03 23:30
Deepak Samuel21-Jul-03 23:30 
Hi,
I need to create about three to four modal dialog boxes such that when a button is pressed in the first one it leads to the next and again when a button is pressed in this it leads to the next one and so on..I am a novice in this field and I need some help in this. I tried this:

void CNewoneDlg::OnOK()
{
CDialog aboutDlg(IDD_DIALOG1);

INT_PTR pRet=-1;

aboutDlg.DoModal();

//CDialog::OnOK(); (I tried taking this off...but didnt work either)
}

This works..it leads to the next dialog box on pressing ok..
but..

void CDialog1Dlg::OnOK()
{
CDialog aboutDlg(IDD_DIALOG2);

INT_PTR pRet=-1;

aboutDlg.DoModal();

//CDialog::OnOK();



}
This doesnt lead to the next dialog box on pressing ok..I am confused, since I have used the method in the earlier function..when that can work, why cant (isnt) this?

I desperately need a help..

THANKS






Deepak Samuel
GeneralRe: Problem with more than one dialog box.. Pin
tcss21-Jul-03 23:42
tcss21-Jul-03 23:42 
GeneralRe: Problem with more than one dialog box.. Pin
Cedric Moonen21-Jul-03 23:44
Cedric Moonen21-Jul-03 23:44 
GeneralRe: Problem with more than one dialog box.. Pin
Deepak Samuel22-Jul-03 0:19
Deepak Samuel22-Jul-03 0:19 
GeneralRe: Problem with more than one dialog box.. Pin
jhwurmbach22-Jul-03 0:10
jhwurmbach22-Jul-03 0:10 
GeneralRe: Problem with more than one dialog box.. Pin
Deepak Samuel22-Jul-03 0:12
Deepak Samuel22-Jul-03 0:12 
GeneralRe: Problem with more than one dialog box.. Pin
jhwurmbach22-Jul-03 0:18
jhwurmbach22-Jul-03 0:18 
GeneralControl Key press in clistview Pin
tcss21-Jul-03 23:27
tcss21-Jul-03 23:27 
GeneralRe: Control Key press in clistview Pin
Adi Narayana22-Jul-03 0:36
Adi Narayana22-Jul-03 0:36 
GeneralRe: Control Key press in clistview Pin
tcss22-Jul-03 0:45
tcss22-Jul-03 0:45 
Generalpaige32.dll PBM Pin
RaajaOfSelf21-Jul-03 23:14
RaajaOfSelf21-Jul-03 23:14 
GeneralListCtrl and line break Pin
heju21-Jul-03 22:48
heju21-Jul-03 22:48 
Questionhow to use control Pin
ladder21-Jul-03 22:36
ladder21-Jul-03 22:36 
AnswerRe: how to use control Pin
BirJas21-Jul-03 23:22
BirJas21-Jul-03 23:22 
GeneralRe: how to use control Pin
ladder22-Jul-03 23:47
ladder22-Jul-03 23:47 
AnswerRe: how to use control Pin
El'Cachubrey21-Jul-03 23:38
El'Cachubrey21-Jul-03 23:38 
GeneralRe: how to use control Pin
ladder22-Jul-03 23:51
ladder22-Jul-03 23:51 
GeneralRe: how to use control Pin
El'Cachubrey23-Jul-03 20:03
El'Cachubrey23-Jul-03 20:03 

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.