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

C / C++ / MFC

 
Questionproblem in debugging MFC app Pin
QuickDeveloper7-Nov-05 18:37
QuickDeveloper7-Nov-05 18:37 
AnswerRe: problem in debugging MFC app Pin
douglasjordan7-Nov-05 18:44
douglasjordan7-Nov-05 18:44 
AnswerRe: problem in debugging MFC app Pin
kakan7-Nov-05 18:57
professionalkakan7-Nov-05 18:57 
GeneralRe: problem in debugging MFC app Pin
Bob Ciora8-Nov-05 1:19
Bob Ciora8-Nov-05 1:19 
QuestionCapturing Keyboard Input in a Dialog Based Appliaction Pin
pani687-Nov-05 18:13
pani687-Nov-05 18:13 
AnswerRe: Capturing Keyboard Input in a Dialog Based Appliaction Pin
douglasjordan7-Nov-05 18:37
douglasjordan7-Nov-05 18:37 
GeneralRe: Capturing Keyboard Input in a Dialog Based Appliaction Pin
pani687-Nov-05 18:44
pani687-Nov-05 18:44 
AnswerRe: Capturing Keyboard Input in a Dialog Based Appliaction Pin
*Dreamz7-Nov-05 18:51
*Dreamz7-Nov-05 18:51 
You can override PreTanslateMessage in the Dialog class...
Inside which you can check for the desired message.

Eg:

if(pMsg->message == WM_KEYDOWN)
{
if(pMsg->wParam == VK_UP)
{
//TODO:
//Logic to set the focus
}
}

For the keys like Control,you can get the state by using GetKeyState function

Eg:

if((GetKeyState(VK_CONTROL) & 0x8000)
{
//TODO:
}



GeneralRe: Capturing Keyboard Input in a Dialog Based Appliaction Pin
pani687-Nov-05 22:18
pani687-Nov-05 22:18 
GeneralRe: Capturing Keyboard Input in a Dialog Based Appliaction Pin
*Dreamz7-Nov-05 23:28
*Dreamz7-Nov-05 23:28 
AnswerRe: Capturing Keyboard Input in a Dialog Based Appliaction Pin
ThatsAlok7-Nov-05 21:51
ThatsAlok7-Nov-05 21:51 
GeneralRe: Capturing Keyboard Input in a Dialog Based Appliaction Pin
pani687-Nov-05 22:23
pani687-Nov-05 22:23 
GeneralRe: Capturing Keyboard Input in a Dialog Based Appliaction Pin
ThatsAlok7-Nov-05 22:54
ThatsAlok7-Nov-05 22:54 
QuestionSwitch Desktop Pin
Nishad S7-Nov-05 17:59
Nishad S7-Nov-05 17:59 
QuestionDumb Puzzling CFileDialog Error Pin
LighthouseJ7-Nov-05 17:04
LighthouseJ7-Nov-05 17:04 
AnswerRe: Dumb Puzzling CFileDialog Error Pin
Bob Ciora8-Nov-05 1:25
Bob Ciora8-Nov-05 1:25 
GeneralRe: Dumb Puzzling CFileDialog Error Pin
LighthouseJ8-Nov-05 5:25
LighthouseJ8-Nov-05 5:25 
QuestionError 10091 in socket program Pin
vani_bel7-Nov-05 16:38
vani_bel7-Nov-05 16:38 
AnswerRe: Error 10091 in socket program Pin
John R. Shaw7-Nov-05 17:37
John R. Shaw7-Nov-05 17:37 
QuestionSystem menu and Notify Icon Menu Pin
Nibu babu thomas7-Nov-05 16:36
Nibu babu thomas7-Nov-05 16:36 
AnswerRe: System menu and Notify Icon Menu Pin
douglasjordan7-Nov-05 17:56
douglasjordan7-Nov-05 17:56 
QuestionDirectShow release of GraphBuilder Pin
douglasjordan7-Nov-05 15:44
douglasjordan7-Nov-05 15:44 
QuestionHexadecimal editor Pin
samkook7-Nov-05 15:02
samkook7-Nov-05 15:02 
AnswerRe: Hexadecimal editor Pin
Christian Graus7-Nov-05 15:07
protectorChristian Graus7-Nov-05 15:07 
AnswerRe: Hexadecimal editor Pin
Chris Losinger7-Nov-05 15:11
professionalChris Losinger7-Nov-05 15:11 

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.