Click here to Skip to main content
15,911,039 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDirectShow : Linker Error Pin
tspramod13-Dec-04 21:40
tspramod13-Dec-04 21:40 
GeneralRe: DirectShow : Linker Error Pin
Sujan Christo13-Dec-04 21:53
Sujan Christo13-Dec-04 21:53 
GeneralRe: DirectShow : Linker Error Pin
ytod13-Dec-04 22:18
ytod13-Dec-04 22:18 
Generalcommunication throught USB Pin
tibiz13-Dec-04 21:23
tibiz13-Dec-04 21:23 
GeneralRe: communication throught USB Pin
namaskaaram13-Dec-04 21:57
namaskaaram13-Dec-04 21:57 
GeneralRe: communication throught USB Pin
tibiz14-Dec-04 1:17
tibiz14-Dec-04 1:17 
GeneralDirectX Question + urgent Pin
Anonymous13-Dec-04 20:29
Anonymous13-Dec-04 20:29 
GeneralRe: DirectX Question + urgent Pin
Andy Hunter14-Dec-04 3:03
Andy Hunter14-Dec-04 3:03 
GeneralPlaying an audio signal in a C++ DLL Pin
Cincy13-Dec-04 20:17
Cincy13-Dec-04 20:17 
GeneralSharing data between dll and exe Pin
ledallam13-Dec-04 20:00
ledallam13-Dec-04 20:00 
GeneralRe: Sharing data between dll and exe Pin
vishalmore13-Dec-04 20:09
vishalmore13-Dec-04 20:09 
GeneralRe: Sharing data between dll and exe Pin
Cedric Moonen13-Dec-04 20:15
Cedric Moonen13-Dec-04 20:15 
GeneralKey messages in Dialog app Pin
AslFunky13-Dec-04 19:33
AslFunky13-Dec-04 19:33 
GeneralRe: Key messages in Dialog app Pin
Arsalan Malik13-Dec-04 19:43
Arsalan Malik13-Dec-04 19:43 
GeneralRe: Key messages in Dialog app Pin
AslFunky13-Dec-04 21:33
AslFunky13-Dec-04 21:33 
Thankx for replying.
I think i am understanding what you are talking about.
I have checked the MSDN and it has three versions of PreTranslateMessage(), namely:
CWinApp, CWinThread and CWnd.
It certainly cannot be CWinThread. Which of the remaining two should I handle? I hope it is the CWinApp!
Can i do it as:

BOOL bHandleNow = FALSE;
switch (lpmsg->message)
{
case WM_KEYDOWN:
switch (lpmsg->wParam)
{
case VK_UP:
case VK_DOWN:
case VK_LEFT:
case VK_RIGHT:
bHandleNow = TRUE;
break;
}
if (bHandleNow)
OnKeyDown(lpmsg->wParam, LOWORD(lpmsg
->lParam), HIWORD(lpmsg->lParam));
break;
}
return bHandleNow;


Please, it would be a lot of help.
Wink | ;) Thanx in advance;)!

AslFunky
GeneralRe: Key messages in Dialog app Pin
Arsalan Malik13-Dec-04 22:54
Arsalan Malik13-Dec-04 22:54 
GeneralRe: Key messages in Dialog app Pin
AslFunky14-Dec-04 1:06
AslFunky14-Dec-04 1:06 
GeneralRe: Key messages in Dialog app Pin
namaskaaram13-Dec-04 21:52
namaskaaram13-Dec-04 21:52 
GeneralRe: Key messages in Dialog app Pin
AslFunky14-Dec-04 1:01
AslFunky14-Dec-04 1:01 
Questionhow to link an external .res file with my application Pin
Arcrest13-Dec-04 18:30
Arcrest13-Dec-04 18:30 
GeneralKeyWord and Reserved Word Pin
Amirzeb13-Dec-04 18:13
Amirzeb13-Dec-04 18:13 
GeneralRe: KeyWord and Reserved Word Pin
Sujan Christo13-Dec-04 20:24
Sujan Christo13-Dec-04 20:24 
QuestionCan I get where cursor placed in vscroll? Pin
freehawk13-Dec-04 18:01
freehawk13-Dec-04 18:01 
AnswerRe: Can I get where cursor placed in vscroll? Pin
ytod13-Dec-04 22:39
ytod13-Dec-04 22:39 
QuestionHow to get WM_VCSROLL ? Pin
freehawk13-Dec-04 17:05
freehawk13-Dec-04 17:05 

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.