Click here to Skip to main content
15,912,897 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Internet Priority level Pin
Arvind2321-May-00 20:08
Arvind2321-May-00 20:08 
GeneralRe: Internet Priority level Pin
Buck22-May-00 11:16
Buck22-May-00 11:16 
GeneralActiveX/COM registration problem. Pin
Member 237521-May-00 5:34
Member 237521-May-00 5:34 
GeneralRe: ActiveX/COM registration problem. Pin
Alex Gorev23-May-00 3:58
Alex Gorev23-May-00 3:58 
Questionhow to get the message when the user clicked the uparrow? Pin
Member 456620-May-00 16:29
Member 456620-May-00 16:29 
AnswerRe: how to get the message when the user clicked the uparrow? Pin
pr0digy122-May-00 20:44
pr0digy122-May-00 20:44 
AnswerRe: how to get the message when the user clicked the uparrow? Pin
pr0digy122-May-00 20:44
pr0digy122-May-00 20:44 
AnswerRe: Subclass the control or use PreTranslateMessage(...) function. Pin
Masaaki Onishi23-May-00 13:00
Masaaki Onishi23-May-00 13:00 
Hello, Codeguru.

I used to have the same problem a long time ago, but I did't remeber how to fix this problem so well..
But,
1) We can use PreTranslateMessage funnction in the dialog, and this function catches all message of the
keystorke or mouse event before the message dispatches to each control. And, try to use CWnd* GetFocus()
to check whether the up-arrow message is sure for the control which you want to check.

2) OnKeyDown function of each control may be called in subclassed derived class of each control.
That is, we derived from the new class from each control class, and the message will be catched inside
this class, and OnKeyDown will works.

Since I didn't find these codes in my old project, I'm not sure these works.
But, PreTranslateMessage function will works more than 2)

HTH.
-Masaaki Onishi-




AnswerRe: how to get the message when the user clicked the uparrow? Pin
Member 432125-May-00 11:44
Member 432125-May-00 11:44 
Generalsplitter with statusbar Pin
Darren Schroeder20-May-00 3:36
Darren Schroeder20-May-00 3:36 
GeneralRe: splitter with statusbar Pin
imsniper23-May-00 22:24
imsniper23-May-00 22:24 
QuestionHow to disable the menu item in a dialog ? Pin
Mani19-May-00 22:36
Mani19-May-00 22:36 
AnswerRe: How to disable the menu item in a dialog ? Pin
rkm21-May-00 2:06
rkm21-May-00 2:06 
GeneralAdding ToolBar to Dialog Pin
Mark19-May-00 22:36
Mark19-May-00 22:36 
GeneralRe: Adding ToolBar to Dialog Pin
rkm21-May-00 1:52
rkm21-May-00 1:52 
QuestionDll required to run exe ? Pin
Mani19-May-00 22:30
Mani19-May-00 22:30 
AnswerRe: Dll required to run exe ? Pin
Member 456620-May-00 16:25
Member 456620-May-00 16:25 
GeneralPlease Help. Urgent. NT Service question. Pin
Konstantin Vasserman19-May-00 17:30
Konstantin Vasserman19-May-00 17:30 
GeneralRe: Please Help. Urgent. NT Service question. Pin
Mike Dunn19-May-00 18:09
Mike Dunn19-May-00 18:09 
GeneralRe: Please Help. Urgent. NT Service question. Pin
Tim Deveaux20-May-00 7:18
Tim Deveaux20-May-00 7:18 
GeneralRe: Please Help. Urgent. NT Service question. Pin
Konstantin Vasserman21-May-00 11:52
Konstantin Vasserman21-May-00 11:52 
GeneralOnLButtonDown Pin
Member 238619-May-00 14:49
Member 238619-May-00 14:49 
GeneralRe: OnLButtonDown Pin
Member 432125-May-00 11:52
Member 432125-May-00 11:52 
GeneralCopy files........ Pin
Alpha-Bravo19-May-00 12:20
sussAlpha-Bravo19-May-00 12:20 
GeneralRe: Copy files........ Pin
Mike Dunn19-May-00 18:02
Mike Dunn19-May-00 18:02 

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.