Click here to Skip to main content
16,017,015 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
JokeRe: ineed a source code before this friday Pin
Rajesh R Subramanian21-May-09 3:39
professionalRajesh R Subramanian21-May-09 3:39 
AnswerRe: ineed a source code before this friday Pin
led mike21-May-09 4:43
led mike21-May-09 4:43 
AnswerRe: ineed a source code before this friday Pin
jeron121-May-09 4:21
jeron121-May-09 4:21 
GeneralRe: ineed a source code before this friday Pin
molesworth21-May-09 4:31
molesworth21-May-09 4:31 
GeneralRe: ineed a source code before this friday Pin
jeron121-May-09 4:50
jeron121-May-09 4:50 
GeneralRe: ineed a source code before this friday Pin
CPallini21-May-09 7:04
mveCPallini21-May-09 7:04 
GeneralRe: ineed a source code before this friday Pin
bulg21-May-09 11:41
bulg21-May-09 11:41 
AnswerRe: ineed a source code before this friday Pin
Stuart Dootson21-May-09 4:37
professionalStuart Dootson21-May-09 4:37 
Question880231 - overriding keyboard behaviour Pin
ilostmyid221-May-09 1:11
professionalilostmyid221-May-09 1:11 
hi as we know, in a dialog box Tab and Shift+Tab change focus between ctrls, Tab to the next one and Shift+Tab to the previous one. when handling the keyboard event generated, we see that both generates the same event with the same wParam (0x09) and lParam (0x000d0001).
so how a dialog figures out which one is hit? apparently by using the function GetKeyState at the moment of handling the message. alright?
now, in a system with no tab key i want to use Up and Down keys in the place of them. at this moment the problem gets produced.
in the PreTranslateMessage of my application, i just change wParam from VK_DOWN into VK_TAB. the PreTranslateMessage of the base class (CWinApp) thinks Tab is hit instead of Down arrow. this is the behavior i intend and it's ok. but what can i do when the user hits Up arrow and expect the previous ctrl gets focused?
do i need to use SetKeyboardState and this is the only way to simulate hitting Shift key?
what can i do?
thx
AnswerRe: 880231 - overriding keyboard behaviour Pin
jeron121-May-09 5:18
jeron121-May-09 5:18 
AnswerRe: 880231 - overriding keyboard behaviour Pin
Stuart Dootson21-May-09 5:36
professionalStuart Dootson21-May-09 5:36 
GeneralRe: 880231 - overriding keyboard behaviour Pin
ilostmyid224-May-09 1:04
professionalilostmyid224-May-09 1:04 
GeneralRe: 880231 - overriding keyboard behaviour Pin
ilostmyid224-May-09 1:23
professionalilostmyid224-May-09 1:23 
GeneralRe: 880231 - overriding keyboard behaviour Pin
Stuart Dootson24-May-09 1:46
professionalStuart Dootson24-May-09 1:46 
GeneralRe: 880231 - overriding keyboard behaviour Pin
ilostmyid224-May-09 3:17
professionalilostmyid224-May-09 3:17 
GeneralRe: 880231 - overriding keyboard behaviour Pin
ilostmyid224-May-09 5:56
professionalilostmyid224-May-09 5:56 
QuestionHow to Create and format partitions Pin
Madan Chauhan20-May-09 23:45
Madan Chauhan20-May-09 23:45 
AnswerRe: How to Create and format partitions Pin
C++myLife21-May-09 0:52
C++myLife21-May-09 0:52 
GeneralRe: How to Create and format partitions Pin
Madan Chauhan21-May-09 1:11
Madan Chauhan21-May-09 1:11 
GeneralRe: How to Create and format partitions Pin
C++myLife21-May-09 1:49
C++myLife21-May-09 1:49 
GeneralRe: How to Create and format partitions Pin
Madan Chauhan21-May-09 22:17
Madan Chauhan21-May-09 22:17 
AnswerRe: How to Create and format partitions Pin
Hamid_RT21-May-09 2:26
Hamid_RT21-May-09 2:26 
GeneralRe: How to Create and format partitions Pin
Stephen Hewitt21-May-09 4:00
Stephen Hewitt21-May-09 4:00 
GeneralRe: How to Create and format partitions Pin
C++myLife21-May-09 20:44
C++myLife21-May-09 20:44 
GeneralRe: How to Create and format partitions Pin
Madan Chauhan21-May-09 22:22
Madan Chauhan21-May-09 22:22 

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.