Overriding controls response to WM_GETDLGCODE in a CDialog

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi. I have a bunch of (legacy) controls in an MFC CDialog. I am
running into problems because the controls aren't getting keyboard
control. I realize that I can fix this by adding a WM_GETDLGCODE
handler to the controls which returns DLGC_WANTALLKEYS.

However, I am trying to find a way of solving this without changing
the controls' code. I suspect that there is a way of hacking around
this by modifying a CDialog::PreTranslateMessage() function behavior,
but my attempts to do this have been unsuccessful so far.

Any ideas? Am I missing something?

Thanks in advance...

.



Relevant Pages

  • Re: Fill-in forms in Word 2007: How?
    ... I tried both the legacy tools, as well as the Rich Text ... Controls after reading several posts and help files. ... get the form to tab from field to field by using Ctrl-Tab. ...
    (microsoft.public.word.docmanagement)
  • Re: Fill-in forms in Word 2007: How?
    ... Legacy Forms palette under Legacy Tools, the bottom right button on the left ... side of the Controls group on the Developer tab. ... "Suzanne S. Barnhill" wrote: ...
    (microsoft.public.word.docmanagement)
  • Re: Fill-in forms in Word 2007: How?
    ... I have put legacy tools on my quick access toolbar. ... Then note that, in order to get to the legacy form controls in Word 2007, ...
    (microsoft.public.word.docmanagement)
  • Re: MS-Word Forms in Office 2007
    ... documents referencing 'converting your existing MS-Word forms to Infopath'. ... Even though the options are available as legacy, in Word 2007, is any ... InfoPath is only part of that. ... You can use the new Content Controls to replace legacy form ...
    (microsoft.public.word.docmanagement)
  • Re: Fill-in forms in Word 2007: How?
    ... Graham Mayor - Word MVP ... Legacy Tools, the bottom right button on the left side of the ... Controls group on the Developer tab. ... inserted Text Form Fields, Dropdown Form Fields, Check Box Form ...
    (microsoft.public.word.docmanagement)