Re: OnKeyDown not called for VK_DOWN or VK_RIGHT but is called for others.

Tech-Archive recommends: Fix windows errors by optimizing your registry



On Mar 23, 9:01 am, "Harvey" <harve...@xxxxxxxx> wrote:
On Mar 22, 10:18 pm, Joseph M. Newcomer <newco...@xxxxxxxxxxxx> wrote:

Ah, so now the REAL problem is stated! You are doing this in a dialog! Yes, in a dialog,
you often have to do this in PreTranslateMessage. I don't do this; I use it in subclassed
controls that can have focus.
joe

So why is this? Where are the keys going? Is it documented?
Thanks Joe,
Harvey

Ok, I replied too soon. I know where the keys are going... to move
around between the controls of the dialog (my dialog has no controls -
really).
Mystery solved. Thanks again Joe!
Harvey

.



Relevant Pages

  • Re: OnKeyDown not getting called in a dialog-based app?
    ... PreTranslateMessage is udsed to translate accelerator keys. ... and controls should process keyboard messages. ... accelerators; that would require loading accelerators since dialog does not ...
    (microsoft.public.vc.mfc)
  • Re: Sean Hannity
    ... "With proper controls, and approval by a judge, in violent cases." ... Joe Long's controls on a per case basis with a Joe Long ... the legal rights of the individual, it's doubtful that you will by going ...
    (rec.gambling.poker)
  • Re: 2005 & adding overides
    ... lots of noises about "optimizing workflow", but VS is an example of a deeply ... Doing controls one at a time and having to wait like 30 seconds ... MVP Tips: http://www.flounder.com/mvp_tips.htm ...
    (microsoft.public.vc.mfc)
  • Re: How to change a CDialogs template after creation
    ... Thanks for the reply Joe, see my latest post for the reasons behind ... typical situation is that at design time you create all the controls you need and later ... memory template that describes the dialog and it's ...
    (microsoft.public.vc.mfc)
  • Re: Handling focus change on child frame
    ... Thank you Joe, I could handle it with PreTranslateMessage. ... For your requirement, in addition to call UpdateAllViews, I think that you may also consider Observer design pattern here. ... The several CFormView derived classes contain windows controls like CEdit, CComboBox, etc, as well as some custom controls. ... It is a bit of a kludge, but you might consider using PreTranslateMessage to handle this. ...
    (microsoft.public.vc.mfc)