Overriding controls response to WM_GETDLGCODE in a CDialog
- From: Rat Monkey Hybrid <RatMonkeyHybrid@xxxxxxxxxxx>
- Date: 18 Apr 2007 13:06:17 -0700
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...
.
- Follow-Ups:
- Re: Overriding controls response to WM_GETDLGCODE in a CDialog
- From: Joseph M . Newcomer
- Re: Overriding controls response to WM_GETDLGCODE in a CDialog
- From: Rat Monkey Hybrid
- Re: Overriding controls response to WM_GETDLGCODE in a CDialog
- From: Doug Harrison [MVP]
- Re: Overriding controls response to WM_GETDLGCODE in a CDialog
- Prev by Date: Re: What is SetDlgItemFloat
- Next by Date: Re: Overriding controls response to WM_GETDLGCODE in a CDialog
- Previous by thread: Re: Calling CreateEx from OnInit ( and a modal dialog app )
- Next by thread: Re: Overriding controls response to WM_GETDLGCODE in a CDialog
- Index(es):
Relevant Pages
|