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:ropertyPage.
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:ropertyPage,
&__uuidof(Outlook:ropertyPage), &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;
}
}
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:ropertyPage.
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:ropertyPage,
&__uuidof(Outlook:ropertyPage), &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;
}
}