Cannot handle WM_INITDIALOG in Outlook::PropertyPage

K

Kentaro KAWAMOTO

Hi,

I am developing an Outlook addin with VC++ .NET which
adds a property page to Outlook's option dialog.

It was successfully added but even if I clicked the tab,
a message handler of WM_INITDIALOG was not called.

It seems WM_INITDIALOG is not sent to Outlook::propertyPage.
If not, where should I initialize the property page?

I am using Outlook 2000 on Windows XP.

--- property page source code ---
class ATL_NO_VTABLE CPropPage :
public CComObjectRootEx<CComSingleThreadModel>,
....
public IDispatchImpl<Outlook::propertyPage,
&__uuidof(Outlook::propertyPage), &Outlook::LIBID_Outlook, /* wMajor =
*/ 9, /* wMinor = */ 0>
{
....
BEGIN_MSG_MAP(CPropPage)
CHAIN_MSG_MAP(CComCompositeControl<CPropPage>)
MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
END_MSG_MAP()
....
public:
LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL&
bHandled)
{
// When I add a breakpoint here, it never breaks.
return 0;
}
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top