Click here to Skip to main content
15,903,203 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Immediate Dialog Close by Cancel Button Pin
thelvaci8-Mar-06 22:00
thelvaci8-Mar-06 22:00 
AnswerRe: Immediate Dialog Close by Cancel Button Pin
Ryan Binns8-Mar-06 17:22
Ryan Binns8-Mar-06 17:22 
GeneralRe: Immediate Dialog Close by Cancel Button Pin
thelvaci8-Mar-06 22:12
thelvaci8-Mar-06 22:12 
GeneralRe: Immediate Dialog Close by Cancel Button Pin
Ryan Binns8-Mar-06 22:19
Ryan Binns8-Mar-06 22:19 
GeneralRe: Immediate Dialog Close by Cancel Button Pin
thelvaci9-Mar-06 1:02
thelvaci9-Mar-06 1:02 
AnswerRe: Immediate Dialog Close by Cancel Button Pin
Aqueel8-Mar-06 17:45
Aqueel8-Mar-06 17:45 
GeneralRe: Immediate Dialog Close by Cancel Button Pin
Nibu babu thomas8-Mar-06 18:09
Nibu babu thomas8-Mar-06 18:09 
GeneralRe: Immediate Dialog Close by Cancel Button Pin
toxcct8-Mar-06 21:16
toxcct8-Mar-06 21:16 
actually, OnOK() and OnCancel() bothe call EndDialog() with either IDOK or IDCANCEL as parameter for the returning value of the dialog.
the difference comes because only OnOK performs an UpdateData(TRUE), so updates the data members of the dialog when the ok button is clicked.

you can so directly call yourself EndDialog(IDCANCEL), it will work perfectly.

however, this is not exactly what the question was about ...
GeneralRe: Immediate Dialog Close by Cancel Button Pin
Nibu babu thomas8-Mar-06 21:17
Nibu babu thomas8-Mar-06 21:17 
GeneralRe: Immediate Dialog Close by Cancel Button Pin
toxcct8-Mar-06 21:19
toxcct8-Mar-06 21:19 
GeneralRe: Immediate Dialog Close by Cancel Button Pin
Nibu babu thomas8-Mar-06 21:38
Nibu babu thomas8-Mar-06 21:38 
GeneralRe: Immediate Dialog Close by Cancel Button Pin
thelvaci9-Mar-06 1:07
thelvaci9-Mar-06 1:07 
QuestionChanging Bit Map on ToolBar Buttons Pin
Jethro638-Mar-06 8:09
Jethro638-Mar-06 8:09 
AnswerRe: Changing Bit Map on ToolBar Buttons Pin
Hamid_RT8-Mar-06 8:59
Hamid_RT8-Mar-06 8:59 
GeneralRe: Changing Bit Map on ToolBar Buttons Pin
Jethro638-Mar-06 9:16
Jethro638-Mar-06 9:16 
AnswerRe: Changing Bit Map on ToolBar Buttons Pin
thelvaci8-Mar-06 9:01
thelvaci8-Mar-06 9:01 
GeneralRe: Changing Bit Map on ToolBar Buttons Pin
Jethro639-Mar-06 2:25
Jethro639-Mar-06 2:25 
GeneralRe: Changing Bit Map on ToolBar Buttons Pin
Mason Landstreet26-Mar-06 9:03
Mason Landstreet26-Mar-06 9:03 
QuestionHow to generate EXE file in VS 2005? any option? Pin
Yonggoo8-Mar-06 6:26
Yonggoo8-Mar-06 6:26 
AnswerRe: How to generate EXE file in VS 2005? any option? Pin
toxcct8-Mar-06 6:29
toxcct8-Mar-06 6:29 
GeneralRe: How to generate EXE file in VS 2005? any option? Pin
Yonggoo8-Mar-06 6:42
Yonggoo8-Mar-06 6:42 
GeneralRe: How to generate EXE file in VS 2005? any option? Pin
toxcct8-Mar-06 6:44
toxcct8-Mar-06 6:44 
AnswerRe: How to generate EXE file in VS 2005? any option? Pin
Maximilien8-Mar-06 6:29
Maximilien8-Mar-06 6:29 
AnswerAnswer! Pin
Yonggoo8-Mar-06 6:57
Yonggoo8-Mar-06 6:57 
QuestionNot "focusable" button needed Pin
.WTL8-Mar-06 5:44
.WTL8-Mar-06 5:44 

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.