Click here to Skip to main content
15,844,152 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: ineed a source code before this friday Pin
led mike21-May-09 5:43
led mike21-May-09 5:43 
AnswerRe: ineed a source code before this friday Pin
jeron121-May-09 5:21
jeron121-May-09 5:21 
GeneralRe: ineed a source code before this friday Pin
molesworth21-May-09 5:31
molesworth21-May-09 5:31 
GeneralRe: ineed a source code before this friday Pin
jeron121-May-09 5:50
jeron121-May-09 5:50 
GeneralRe: ineed a source code before this friday Pin
CPallini21-May-09 8:04
mveCPallini21-May-09 8:04 
GeneralRe: ineed a source code before this friday Pin
bulg21-May-09 12:41
bulg21-May-09 12:41 
AnswerRe: ineed a source code before this friday Pin
Stuart Dootson21-May-09 5:37
professionalStuart Dootson21-May-09 5:37 
Question880231 - overriding keyboard behaviour Pin
ilostmyid221-May-09 2:11
professionalilostmyid221-May-09 2: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 6:18
jeron121-May-09 6:18 
AnswerRe: 880231 - overriding keyboard behaviour Pin
Stuart Dootson21-May-09 6:36
professionalStuart Dootson21-May-09 6:36 
GeneralRe: 880231 - overriding keyboard behaviour Pin
ilostmyid224-May-09 2:04
professionalilostmyid224-May-09 2:04 
GeneralRe: 880231 - overriding keyboard behaviour Pin
ilostmyid224-May-09 2:23
professionalilostmyid224-May-09 2:23 
GeneralRe: 880231 - overriding keyboard behaviour Pin
Stuart Dootson24-May-09 2:46
professionalStuart Dootson24-May-09 2:46 
GeneralRe: 880231 - overriding keyboard behaviour Pin
ilostmyid224-May-09 4:17
professionalilostmyid224-May-09 4:17 
GeneralRe: 880231 - overriding keyboard behaviour Pin
ilostmyid224-May-09 6:56
professionalilostmyid224-May-09 6:56 
QuestionHow to Create and format partitions Pin
Madan Chauhan21-May-09 0:45
Madan Chauhan21-May-09 0:45 
AnswerRe: How to Create and format partitions Pin
C++myLife21-May-09 1:52
C++myLife21-May-09 1:52 
GeneralRe: How to Create and format partitions Pin
Madan Chauhan21-May-09 2:11
Madan Chauhan21-May-09 2:11 
GeneralRe: How to Create and format partitions Pin
C++myLife21-May-09 2:49
C++myLife21-May-09 2:49 
GeneralRe: How to Create and format partitions Pin
Madan Chauhan21-May-09 23:17
Madan Chauhan21-May-09 23:17 
AnswerRe: How to Create and format partitions Pin
Hamid_RT21-May-09 3:26
Hamid_RT21-May-09 3:26 
GeneralRe: How to Create and format partitions Pin
Stephen Hewitt21-May-09 5:00
Stephen Hewitt21-May-09 5:00 
GeneralRe: How to Create and format partitions Pin
C++myLife21-May-09 21:44
C++myLife21-May-09 21:44 
GeneralRe: How to Create and format partitions Pin
Madan Chauhan21-May-09 23:22
Madan Chauhan21-May-09 23:22 
QuestionCreate CBitmap from array of RGB values Pin
sashoalm21-May-09 0:00
sashoalm21-May-09 0:00 

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.