Click here to Skip to main content
15,902,892 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Removing tab spaces using C++ source code Pin
CPallini27-Jun-08 3:26
mveCPallini27-Jun-08 3:26 
AnswerRe: Removing tab spaces using C++ source code Pin
Roger Stoltz27-Jun-08 4:42
Roger Stoltz27-Jun-08 4:42 
Questionusing transparent GIFs for toolbar buttons Pin
danginkgo27-Jun-08 1:25
danginkgo27-Jun-08 1:25 
AnswerRe: using transparent GIFs for toolbar buttons Pin
Iain Clarke, Warrior Programmer27-Jun-08 2:35
Iain Clarke, Warrior Programmer27-Jun-08 2:35 
GeneralRe: using transparent GIFs for toolbar buttons Pin
danginkgo27-Jun-08 3:59
danginkgo27-Jun-08 3:59 
QuestionGetDefID from CDialog in CView Pin
baerten27-Jun-08 1:23
baerten27-Jun-08 1:23 
AnswerRe: GetDefID from CDialog in CView Pin
Iain Clarke, Warrior Programmer27-Jun-08 2:49
Iain Clarke, Warrior Programmer27-Jun-08 2:49 
GeneralRe: GetDefID from CDialog in CView Pin
baerten27-Jun-08 3:09
baerten27-Jun-08 3:09 
Hi, thanks for your answer.

If you have 3 textboxes and a Button on the Dialog or View, you can switch into them via the Tab-Key.
Tab-Key sets the Focus to the next control and if the user hits the Return-Key, the "Default Button" is clicked.
In my Application it should be different.
You are into the 1. textbox, you enter a string and hit <return>, then the focus switches to the second textbox.
A <return> on the second textbox sets the focus to the third textbox and finally a
return on the third textbox presses the "Default Button"

I have a universal Form which contains a lot of functionalities to all of my views.
Now i added into PreTranslateMessage that a Return on a textbox sets the focus on the next control,
and not a click on the Default Button.

The only thing that i need to know is how i check if the actual textbox is the textbox before the Default Button.
In a Dialog it works with GetDefID() but in my UniView (derived from CFormView) there is no GetDefID()

Don't ask me why the navigation is so unusual Laugh | :laugh: Wink | ;)
Questionshowing a button with a bitmap Pin
VCProgrammer27-Jun-08 1:17
VCProgrammer27-Jun-08 1:17 
AnswerRe: showing a button with a bitmap Pin
SandipG 27-Jun-08 2:21
SandipG 27-Jun-08 2:21 
AnswerRe: showing a button with a bitmap Pin
sudhir_Kumar27-Jun-08 2:54
sudhir_Kumar27-Jun-08 2:54 
AnswerRe: showing a button with a bitmap Pin
Iain Clarke, Warrior Programmer27-Jun-08 3:01
Iain Clarke, Warrior Programmer27-Jun-08 3:01 
AnswerRe: showing a button with a bitmap Pin
David Crow27-Jun-08 4:43
David Crow27-Jun-08 4:43 
AnswerRe: showing a button with a bitmap Pin
Hamid_RT30-Jun-08 18:30
Hamid_RT30-Jun-08 18:30 
QuestionHow can set Focus on ListCtrl? Pin
Le@rner26-Jun-08 23:10
Le@rner26-Jun-08 23:10 
AnswerRe: How can set Focus on ListCtrl? Pin
Rajesh R Subramanian26-Jun-08 23:14
professionalRajesh R Subramanian26-Jun-08 23:14 
GeneralRe: How can set Focus on ListCtrl? Pin
Le@rner26-Jun-08 23:23
Le@rner26-Jun-08 23:23 
GeneralRe: How can set Focus on ListCtrl? Pin
Naveen26-Jun-08 23:35
Naveen26-Jun-08 23:35 
GeneralRe: How can set Focus on ListCtrl? Pin
Rajesh R Subramanian26-Jun-08 23:39
professionalRajesh R Subramanian26-Jun-08 23:39 
GeneralRe: How can set Focus on ListCtrl? Pin
Le@rner26-Jun-08 23:47
Le@rner26-Jun-08 23:47 
QuestionRe: How can set Focus on ListCtrl? Pin
Rajesh R Subramanian26-Jun-08 23:50
professionalRajesh R Subramanian26-Jun-08 23:50 
AnswerRe: How can set Focus on ListCtrl? Pin
Le@rner27-Jun-08 0:49
Le@rner27-Jun-08 0:49 
GeneralRe: How can set Focus on ListCtrl? Pin
Rajesh R Subramanian27-Jun-08 0:55
professionalRajesh R Subramanian27-Jun-08 0:55 
GeneralRe: How can set Focus on ListCtrl? Pin
Le@rner27-Jun-08 1:23
Le@rner27-Jun-08 1:23 
QuestionRe: How can set Focus on ListCtrl? Pin
Rajesh R Subramanian27-Jun-08 1:42
professionalRajesh R Subramanian27-Jun-08 1:42 

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.