Click here to Skip to main content
15,922,015 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CView and Dialog Pin
David Crow28-Jul-05 5:31
David Crow28-Jul-05 5:31 
GeneralRe: CView and Dialog Pin
David Crow28-Jul-05 5:37
David Crow28-Jul-05 5:37 
GeneralRe: CView and Dialog Pin
Mohammed F. Salem28-Jul-05 7:13
Mohammed F. Salem28-Jul-05 7:13 
GeneralRe: CView and Dialog Pin
David Crow28-Jul-05 7:23
David Crow28-Jul-05 7:23 
GeneralRe: CView and Dialog Pin
Mohammed F. Salem28-Jul-05 9:30
Mohammed F. Salem28-Jul-05 9:30 
GeneralRe: CView and Dialog Pin
David Crow28-Jul-05 9:41
David Crow28-Jul-05 9:41 
GeneralRe: CView and Dialog Pin
Mohammed F. Salem28-Jul-05 9:54
Mohammed F. Salem28-Jul-05 9:54 
GeneralRe: CView and Dialog Pin
David Crow28-Jul-05 10:08
David Crow28-Jul-05 10:08 
GeneralI solved it Pin
Mohammed F. Salem29-Jul-05 8:39
Mohammed F. Salem29-Jul-05 8:39 
GeneralAplication crashes Pin
Shailesh Halankar27-Jul-05 20:04
sussShailesh Halankar27-Jul-05 20:04 
GeneralRe: Aplication crashes Pin
Bob Stanneveld27-Jul-05 21:08
Bob Stanneveld27-Jul-05 21:08 
GeneralRe: Aplication crashes Pin
Blake Miller28-Jul-05 5:19
Blake Miller28-Jul-05 5:19 
GeneralCFileDialog Pin
ajmalsiddiqi27-Jul-05 19:19
ajmalsiddiqi27-Jul-05 19:19 
GeneralRe: CFileDialog Pin
Rob Manderson27-Jul-05 19:33
protectorRob Manderson27-Jul-05 19:33 
GeneralRe: CFileDialog Pin
Marc Soleda27-Jul-05 19:49
Marc Soleda27-Jul-05 19:49 
GeneralRe: CFileDialog Pin
ajmalsiddiqi27-Jul-05 23:25
ajmalsiddiqi27-Jul-05 23:25 
QuestionHow to open default mail client and pass to it subject, body and an attachement? Pin
petehero27-Jul-05 19:01
petehero27-Jul-05 19:01 
AnswerRe: How to open default mail client and pass to it subject, body and an attachement? Pin
David Crow28-Jul-05 5:44
David Crow28-Jul-05 5:44 
GeneralRe: How to open default mail client and pass to it subject, body and an attachement? Pin
petehero28-Jul-05 18:43
petehero28-Jul-05 18:43 
GeneralRe: How to open default mail client and pass to it subject, body and an attachement? Pin
David Crow29-Jul-05 2:28
David Crow29-Jul-05 2:28 
GeneralRe: How to open default mail client and pass to it subject, body and an attachement? Pin
petehero31-Jul-05 19:48
petehero31-Jul-05 19:48 
Generalmodeless dialog pointer Pin
sayup27-Jul-05 18:58
sayup27-Jul-05 18:58 
GeneralRe: modeless dialog pointer Pin
Christian Graus27-Jul-05 19:14
protectorChristian Graus27-Jul-05 19:14 
GeneralRe: modeless dialog pointer Pin
sayup27-Jul-05 20:53
sayup27-Jul-05 20:53 
thanks,can you suggest on something else.Actually i ahve a problem.I have created a dialog based application.I have inserted menu options voz dialog1,dialog2,dialog3,....dialog6 in the dialog .On clicking of these menu opions i am popping 6 different modeless dialog.here is sample code written for say menu item dialog1
midialog *d1;//midialog is class for dialog resource
d1=new midialog;
d1->Create(IDD_DIALOG1);
d1->ShowWindow(SW_SHOW);

d1 optionally is set to NULL in parent dialog constructor.

To close the dialog i either click on OK or Cancel or Red cross button and then i close the parent window.I have overriden OnCancel,OnOk functions and called DestroyWindow() in them. Also called PostNcDestroy function .Is this correct?

midialog::OnOk()
{
//Cdialog::OnOK();//commented out
UpdateData(TRUE);
Destroywindow(0;
}
midialog::Oncancel()
{
//CDialog::OnCancel();//commented out since it calls EndDialog and not DestroyWindow()
}
midialog::PostNcDestroy()
{
CDialog::PostNcDestroy();
delete this;
}

Is this ok?i also hope then there will be no problem when i close the modeless dialog and open it again
plz reply
i am in fix

GeneralRe: modeless dialog pointer Pin
Christian Graus28-Jul-05 15:10
protectorChristian Graus28-Jul-05 15:10 

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.