I've written a custom control (that does not create an HWND
) that sits inside a modal dialog. I'm trying to intercept WM_GETOBJECT
with lParam
set to OBJID_CLIENT
so I can return my IAccessible
implementation of my custom control. The strange thing is I never see lParam
set to OBJID_CLIENT
although I do see WM_GETOBJECT
.
The dialog is derived from WTL's CDialogImpl
The strange thing is, if I create a child window of the dialog and size it to fit within the dialog's client area, THAT window DOES get WM_GETOBJECT
with lParam
set to OBJID_CLIENT
and everything works correctly.
Is there some special style or property I need to set on the dialog to receive the correct WM_GETOBJECT
calls?