Click here to Skip to main content
15,891,473 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to terminate continuous running program by clicking button on MFC dialog based window in C++ Pin
Thinn Nwe Han14-Oct-07 23:09
Thinn Nwe Han14-Oct-07 23:09 
AnswerRe: how to terminate continuous running program by clicking button on MFC dialog based window in C++ Pin
chandu00415-Oct-07 0:41
chandu00415-Oct-07 0:41 
GeneralRe: how to terminate continuous running program by clicking button on MFC dialog based window in C++ Pin
Thinn Nwe Han15-Oct-07 16:02
Thinn Nwe Han15-Oct-07 16:02 
QuestionRe: how to terminate continuous running program by clicking button on MFC dialog based window in C++ Pin
David Crow15-Oct-07 4:09
David Crow15-Oct-07 4:09 
AnswerRe: how to terminate continuous running program by clicking button on MFC dialog based window in C++ Pin
Thinn Nwe Han15-Oct-07 15:58
Thinn Nwe Han15-Oct-07 15:58 
GeneralRe: how to terminate continuous running program by clicking button on MFC dialog based window in C++ Pin
David Crow15-Oct-07 16:04
David Crow15-Oct-07 16:04 
QuestionButtons Pin
mcsherry14-Oct-07 23:02
mcsherry14-Oct-07 23:02 
AnswerRe: Buttons [modified] Pin
Roger Broomfield14-Oct-07 23:17
Roger Broomfield14-Oct-07 23:17 
Derive a class from CButton and attach it to the buttons in the dialogs OnInitDialog function (or use DDX_Control to do it in DoDataExchange but you'll have to add the DDX_Control manually outside of AFX_DATA_MAP or use the class wizard to create a member variable for the button using CButton and then move them out of AFX_DATA_MAP and modify the declaration from CButton to CMyButton if you use class wizard to derive CMyButton then class wizard actually recognizes it as a valid variable type I didnt know this), then you can add WM_LBUTTONUP/DOWN handlers to your CMyButton class.


-- modified at 6:42 Monday 15th October, 2007
GeneralRe: Buttons Pin
mcsherry14-Oct-07 23:46
mcsherry14-Oct-07 23:46 
GeneralRe: Buttons Pin
Roger Broomfield14-Oct-07 23:58
Roger Broomfield14-Oct-07 23:58 
GeneralRe: Buttons Pin
mcsherry15-Oct-07 0:21
mcsherry15-Oct-07 0:21 
GeneralRe: Buttons Pin
David Crow15-Oct-07 4:12
David Crow15-Oct-07 4:12 
Questionerror : class redifinition Pin
srvsah14-Oct-07 21:55
srvsah14-Oct-07 21:55 
AnswerRe: error : class redifinition Pin
Nelek14-Oct-07 22:16
protectorNelek14-Oct-07 22:16 
AnswerRe: error : class redifinition Pin
toxcct15-Oct-07 0:17
toxcct15-Oct-07 0:17 
AnswerRe: error : class redifinition Pin
Cedric Moonen15-Oct-07 0:18
Cedric Moonen15-Oct-07 0:18 
AnswerRe: error : class redifinition Pin
ThatsAlok15-Oct-07 1:50
ThatsAlok15-Oct-07 1:50 
AnswerRe: error : class redifinition Pin
David Crow15-Oct-07 4:15
David Crow15-Oct-07 4:15 
QuestionVC++ with Flash 8 Pin
msr_codeproject14-Oct-07 21:54
msr_codeproject14-Oct-07 21:54 
Questionclient-server + use Ms Word with C++ Pin
Russell'14-Oct-07 21:53
Russell'14-Oct-07 21:53 
QuestionHow to remove a directory Pin
nbugalia14-Oct-07 20:58
nbugalia14-Oct-07 20:58 
AnswerRe: How to remove a directory Pin
User 58385214-Oct-07 21:02
User 58385214-Oct-07 21:02 
AnswerRe: How to remove a directory Pin
Roger Broomfield14-Oct-07 21:35
Roger Broomfield14-Oct-07 21:35 
AnswerRe: How to remove a directory Pin
Hamid_RT14-Oct-07 21:46
Hamid_RT14-Oct-07 21:46 
GeneralRe: How to remove a directory Pin
Roger Broomfield14-Oct-07 23:09
Roger Broomfield14-Oct-07 23:09 

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.