On Fri, Apr 4, 2008 at 11:11 AM, Lei Zhang thestig@google.com wrote:
On Fri, Apr 4, 2008 at 9:14 AM, Dmitry Timoshkov dmitry@codeweavers.com wrote:
"Lei Zhang" thestig@google.com wrote:
The edit control is the child of a dialog box bar, which is in turn the child of another dialog box foo. SetParent() is not involved, if that's what you mean.
Seems that's not the case then, from your test it looks more like a WM_COMMAND forwarding from a child dialog to the parent one.
-- Dmitry.
I'm pretty sure the parent dialog is getting the WM_COMMAND directly. It is not the case where the child dialog gets a WM_COMMAND, and forwards it to its parent.
Running the test on Windows, the child dialog gets two WM_COMMANDS - EN_SETFOCUS and EN_KILLFOCUS. Then the parent dialog gets WM_COMMAND with IDOK.
- Lei
Ah, this is because the child dialog has the DS_CONTROL style. I should test for that and handle it appropriately.
- Lei