Click here to Skip to main content
16,014,662 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: FtpCommand Function? Pin
monsieur_jj11-May-08 19:22
monsieur_jj11-May-08 19:22 
Questionwhy i cannot close a dialog? the close operation by a button which sendmessage the WM_CLOSE message. Pin
xqhrs2328-May-08 15:42
xqhrs2328-May-08 15:42 
AnswerRe: why i cannot close a dialog? the close operation by a button which sendmessage the WM_CLOSE message. Pin
David Crow8-May-08 16:21
David Crow8-May-08 16:21 
QuestionRe: why i cannot close a dialog? the close operation by a button which sendmessage the WM_CLOSE message. Pin
Rajesh R Subramanian8-May-08 19:19
professionalRajesh R Subramanian8-May-08 19:19 
AnswerRe: why i cannot close a dialog? the close operation by a button which sendmessage the WM_CLOSE message. Pin
Nitheesh George8-May-08 19:53
Nitheesh George8-May-08 19:53 
AnswerRe: why i cannot close a dialog? the close operation by a button which sendmessage the WM_CLOSE message. Pin
Hamid_RT8-May-08 19:56
Hamid_RT8-May-08 19:56 
AnswerRe: why i cannot close a dialog? the close operation by a button which sendmessage the WM_CLOSE message. Pin
Dan8-May-08 20:19
Dan8-May-08 20:19 
GeneralRe: why i cannot close a dialog? the close operation by a button which sendmessage the WM_CLOSE message. Pin
xqhrs2328-May-08 21:12
xqhrs2328-May-08 21:12 
the following is my code,give me some advise.
sometimes the dialog can close by this,sometimes doesnot work like i want.

LRESULT CSettingDlg::WindowProc(UINT message, WPARAM wParam, LPARAM lParam)
{

switch(message)
{

case WM_COMMAND:

//I use the button to exit the dialog,which is static create by me!
if(wID==IDC_Btn_SetEsc) //static create the button
{
this->SendMessage(WM_CLOSE,NULL,NULL);
return TRUE;

//break;
}

case WM_CLOSE:
// case WM_DESTROY://2008--4--24 xqh_xg
DeleteObjects(); //free the used object
break;

}//switch(message)

return CDialog::WindowProc(message, wParam, lParam);
}
GeneralRe: why i cannot close a dialog? the close operation by a button which sendmessage the WM_CLOSE message. Pin
Mark Salsbery9-May-08 6:51
Mark Salsbery9-May-08 6:51 
GeneralRe: why i cannot close a dialog? the close operation by a button which sendmessage the WM_CLOSE message. Pin
xqhrs23210-May-08 16:12
xqhrs23210-May-08 16:12 
GeneralRe: why i cannot close a dialog? the close operation by a button which sendmessage the WM_CLOSE message. [modified] Pin
Mark Salsbery10-May-08 17:07
Mark Salsbery10-May-08 17:07 
GeneralRe: why i cannot close a dialog? the close operation by a button which sendmessage the WM_CLOSE message. Pin
xqhrs23213-May-08 3:28
xqhrs23213-May-08 3:28 
GeneralRe: why i cannot close a dialog? the close operation by a button which sendmessage the WM_CLOSE message. Pin
Mark Salsbery13-May-08 4:45
Mark Salsbery13-May-08 4:45 
GeneralRe: why i cannot close a dialog? the close operation by a button which sendmessage the WM_CLOSE message. Pin
xqhrs23213-May-08 20:38
xqhrs23213-May-08 20:38 
GeneralRe: why i cannot close a dialog? the close operation by a button which sendmessage the WM_CLOSE message. Pin
Mark Salsbery14-May-08 5:53
Mark Salsbery14-May-08 5:53 
GeneralRe: why i cannot close a dialog? the close operation by a button which sendmessage the WM_CLOSE message. Pin
xqhrs23214-May-08 17:13
xqhrs23214-May-08 17:13 
GeneralRe: why i cannot close a dialog? the close operation by a button which sendmessage the WM_CLOSE message. Pin
Mark Salsbery14-May-08 18:00
Mark Salsbery14-May-08 18:00 
GeneralRe: why i cannot close a dialog? the close operation by a button which sendmessage the WM_CLOSE message. Pin
xqhrs23215-May-08 0:16
xqhrs23215-May-08 0:16 
QuestionTaking advantage of multi-core procesors?? Pin
97C5ENVY8-May-08 11:13
97C5ENVY8-May-08 11:13 
AnswerRe: Taking advantage of multi-core procesors?? Pin
CPallini8-May-08 12:33
mveCPallini8-May-08 12:33 
AnswerRe: Taking advantage of multi-core procesors?? Pin
toxcct8-May-08 21:48
toxcct8-May-08 21:48 
AnswerRe: Taking advantage of multi-core procesors?? Pin
Michael Schubert8-May-08 21:51
Michael Schubert8-May-08 21:51 
GeneralRe: Taking advantage of multi-core procesors?? Pin
Mark Salsbery9-May-08 6:54
Mark Salsbery9-May-08 6:54 
GeneralRe: Taking advantage of multi-core procesors?? Pin
Michael Schubert9-May-08 11:02
Michael Schubert9-May-08 11:02 
GeneralRe: Taking advantage of multi-core procesors?? Pin
Mark Salsbery9-May-08 12:18
Mark Salsbery9-May-08 12:18 

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.