Click here to Skip to main content
15,898,134 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
Hi,
thanx for replying.
Yes, i have tried using SetFocus(), but that doesn't work.
Anyway, Arsalan Malik has given the right solution. We must override the virtual function PreTranslateMessage() of the CWnd class.
In this code we have to return a TRUE for the keydown messages if they are VK_UP, VK_DOWN, VK_LEFT, VK_RIGHT. These are stored in the HIWORD and LOWORD of the message of the lpMsg paramater.
Please refer to MSDN if you cannot get this. It is quite clear there.
Thanx anyway.
Bye

/--------\
|AslFunky|
\--------/
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 
AnswerRe: How to get WM_VCSROLL ? Pin
ytod13-Dec-04 23:32
ytod13-Dec-04 23:32 
QuestionHow do we run an Exe File when openning the Windows? Pin
pubududilena13-Dec-04 16:49
pubududilena13-Dec-04 16:49 
AnswerRe: How do we run an Exe File when openning the Windows? Pin
Yulianto.13-Dec-04 17:13
Yulianto.13-Dec-04 17:13 
AnswerRe: How do we run an Exe File when openning the Windows? Pin
Arsalan Malik13-Dec-04 19:36
Arsalan Malik13-Dec-04 19:36 
AnswerRe: How do we run an Exe File when openning the Windows? Pin
vishalmore13-Dec-04 20:00
vishalmore13-Dec-04 20:00 
GeneralColor Palette Toolbar Pin
Tony Teveris13-Dec-04 14:17
Tony Teveris13-Dec-04 14:17 
GeneralRe: Color Palette Toolbar Pin
Sujan Christo13-Dec-04 20:58
Sujan Christo13-Dec-04 20:58 
GeneralExponents Pin
Verolix13-Dec-04 13:54
Verolix13-Dec-04 13:54 
GeneralRe: Exponents Pin
Ryan Binns13-Dec-04 16:56
Ryan Binns13-Dec-04 16:56 
GeneralRe: Exponents Pin
Yulianto.13-Dec-04 17:14
Yulianto.13-Dec-04 17:14 
GeneralParser Pin
Verolix13-Dec-04 13:51
Verolix13-Dec-04 13:51 

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.