Click here to Skip to main content
15,909,896 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Buttons in child dialog do no respons to enter key Pin
YaronNir22-May-06 3:19
YaronNir22-May-06 3:19 
GeneralRe: Buttons in child dialog do no respons to enter key Pin
toxcct22-May-06 3:23
toxcct22-May-06 3:23 
GeneralRe: Buttons in child dialog do no respons to enter key Pin
YaronNir22-May-06 3:26
YaronNir22-May-06 3:26 
GeneralRe: Buttons in child dialog do no respons to enter key Pin
toxcct22-May-06 3:28
toxcct22-May-06 3:28 
GeneralRe: Buttons in child dialog do no respons to enter key Pin
YaronNir22-May-06 3:29
YaronNir22-May-06 3:29 
GeneralRe: Buttons in child dialog do no respons to enter key Pin
toxcct22-May-06 3:31
toxcct22-May-06 3:31 
GeneralRe: Buttons in child dialog do no respons to enter key Pin
YaronNir22-May-06 3:33
YaronNir22-May-06 3:33 
GeneralRe: Buttons in child dialog do no respons to enter key Pin
Russell'22-May-06 4:50
Russell'22-May-06 4:50 
YaronNir wrote:
My desire is when i stand on a certain button in the child dialog, and that button has the focus,
pressing enter will cause the button to be clicked (such as pressing space bar does)


What about PreTranslateMessage()?
where you can look for the message "key pressed" and check if it is the 'enter' key. Then GetFocus() to get the current Button and then....;)
Is it clear?


Russell

AnswerRe: Buttons in child dialog do no respons to enter key Pin
_AnsHUMAN_ 22-May-06 4:17
_AnsHUMAN_ 22-May-06 4:17 
GeneralRe: Buttons in child dialog do no respons to enter key Pin
YaronNir22-May-06 4:21
YaronNir22-May-06 4:21 
GeneralRe: Buttons in child dialog do no respons to enter key Pin
_AnsHUMAN_ 22-May-06 4:28
_AnsHUMAN_ 22-May-06 4:28 
GeneralRe: Buttons in child dialog do no respons to enter key Pin
YaronNir22-May-06 4:29
YaronNir22-May-06 4:29 
GeneralRe: Buttons in child dialog do no respons to enter key Pin
YaronNir22-May-06 4:24
YaronNir22-May-06 4:24 
GeneralRe: Buttons in child dialog do no respons to enter key Pin
_AnsHUMAN_ 22-May-06 20:44
_AnsHUMAN_ 22-May-06 20:44 
GeneralRe: Buttons in child dialog do no respons to enter key Pin
YaronNir22-May-06 20:58
YaronNir22-May-06 20:58 
Questionbytes to string Pin
satsumatable22-May-06 2:50
satsumatable22-May-06 2:50 
GeneralRe: bytes to string Pin
Laxman Auti22-May-06 3:02
Laxman Auti22-May-06 3:02 
GeneralRe: bytes to string Pin
toxcct22-May-06 3:21
toxcct22-May-06 3:21 
GeneralRe: bytes to string Pin
Hamid_RT22-May-06 4:29
Hamid_RT22-May-06 4:29 
AnswerRe: bytes to string Pin
ThatsAlok22-May-06 4:34
ThatsAlok22-May-06 4:34 
QuestionHow To Run a C++ Program as Service Pin
Suganya.D22-May-06 2:49
Suganya.D22-May-06 2:49 
AnswerRe: How To Run a C++ Program as Service Pin
Laxman Auti22-May-06 2:56
Laxman Auti22-May-06 2:56 
AnswerRe: How To Run a C++ Program as Service Pin
David Crow22-May-06 3:06
David Crow22-May-06 3:06 
AnswerRe: How To Run a C++ Program as Service Pin
ThatsAlok22-May-06 4:36
ThatsAlok22-May-06 4:36 
QuestionHow to response OS message Pin
cnez22-May-06 2:23
cnez22-May-06 2:23 

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.