Click here to Skip to main content
15,910,603 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCButton disable/focus conundrum Pin
23_4449-Aug-05 6:09
23_4449-Aug-05 6:09 
GeneralRe: CButton disable/focus conundrum Pin
Ravi Bhavnani9-Aug-05 6:54
professionalRavi Bhavnani9-Aug-05 6:54 
GeneralRe: CButton disable/focus conundrum Pin
Blake Miller9-Aug-05 7:29
Blake Miller9-Aug-05 7:29 
GeneralRe: CButton disable/focus conundrum Pin
23_4449-Aug-05 7:33
23_4449-Aug-05 7:33 
GeneralRe: CButton disable/focus conundrum Pin
David Crow9-Aug-05 8:15
David Crow9-Aug-05 8:15 
GeneralRe: CButton disable/focus conundrum Pin
23_4449-Aug-05 8:23
23_4449-Aug-05 8:23 
GeneralRe: CButton disable/focus conundrum Pin
David Crow9-Aug-05 8:28
David Crow9-Aug-05 8:28 
GeneralRe: CButton disable/focus conundrum Pin
23_4449-Aug-05 8:55
23_4449-Aug-05 8:55 
I revisited this. Regardless of whether a default button is set, any button will generate a command event by pressing the enter key IF it has the focus. I'm not trying to get default behavior regardless of what control has the focus but merely put the focus to a button from a button that is going night night.

SendMessage(DM_SETDEFID,IDC_NEW); idea was a good one and I appreciate your email.

I think I might try this. Setting the focus to the control of choice..NEW from the SAVE and once the control gets the focus (i.e. I'm out of the SAVE button code) then have the NEW button onfocus disable the SAVE. I notice though that there is not an onfocus event for the CButton.


GeneralRe: CButton disable/focus conundrum Pin
23_44410-Aug-05 7:46
23_44410-Aug-05 7:46 
GeneralRe: CButton disable/focus conundrum Pin
Blake Miller12-Aug-05 5:07
Blake Miller12-Aug-05 5:07 
Generalunwanted character on stringstream Pin
gecool9-Aug-05 4:36
gecool9-Aug-05 4:36 
GeneralRe: unwanted character on stringstream Pin
toxcct9-Aug-05 5:51
toxcct9-Aug-05 5:51 
GeneralRe: unwanted character on stringstream Pin
gecool9-Aug-05 20:26
gecool9-Aug-05 20:26 
GeneralRe: unwanted character on stringstream Pin
Eytukan9-Aug-05 6:02
Eytukan9-Aug-05 6:02 
QuestionTASPI? Pin
Eytukan9-Aug-05 3:39
Eytukan9-Aug-05 3:39 
AnswerTSAPI? Pin
Eytukan9-Aug-05 5:44
Eytukan9-Aug-05 5:44 
GeneralRe: TSAPI? Pin
16-Aug-05 4:00
suss16-Aug-05 4:00 
Generalmail project in vc++ (the connection can't be established) Pin
yasbakr9-Aug-05 2:20
yasbakr9-Aug-05 2:20 
GeneralRe: mail project in vc++ (the connection can't be established) Pin
Jose Lamas Rios9-Aug-05 5:16
Jose Lamas Rios9-Aug-05 5:16 
GeneralRe: mail project in vc++ (the connection can't be established) Pin
ThatsAlok9-Aug-05 19:31
ThatsAlok9-Aug-05 19:31 
GeneralDLL Without MFC Pin
schoni9-Aug-05 1:51
schoni9-Aug-05 1:51 
GeneralRe: DLL Without MFC Pin
Chris Losinger9-Aug-05 2:12
professionalChris Losinger9-Aug-05 2:12 
GeneralRe: DLL Without MFC Pin
schoni9-Aug-05 2:28
schoni9-Aug-05 2:28 
GeneralRe: DLL Without MFC Pin
Cedric Moonen9-Aug-05 2:36
Cedric Moonen9-Aug-05 2:36 
GeneralRe: DLL Without MFC Pin
David Crow9-Aug-05 2:43
David Crow9-Aug-05 2:43 

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.