Group:  Microsoft Outlook ยป microsoft.public.outlook.program_addins
Thread: Options Pages with VS2005

Geek News

Options Pages with VS2005
"Mark W via OfficeKB.com" <u10791[ at ]uwe> 2/15/2006 7:45:44 AM
FYI - Anyone using Visual Studio 2005 with ATL will find that the
WM_INITDIALOG message WILL NOT be sent when trying to initialize an Outlook
options page. To work around this issue you will need to handle a different
dialog message like WM_SIZE which you will have to include a flag since it is
called twice at initialization (credit goes to S3ven).

Hopefully this saves others debugging time...

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.aspx/outlook-prog-addins/200602/1
Re: Options Pages with VS2005
"Mark W via OfficeKB.com" <u10791[ at ]uwe> 2/16/2006 3:28:55 AM
I did some more debugging after implementing S3vens solutions and found the
the actual 'problem' is the result of the CHAIN_MSG_MAP macro in VS2005. You
need to put the WM_INITDIALOG handler above the chain macro. This is true for
other messages like WM_ONCTLCOLOR that occur before/during dialog box
initialization.

Mark W wrote:
[Quoted Text]
>FYI - Anyone using Visual Studio 2005 with ATL will find that the
>WM_INITDIALOG message WILL NOT be sent when trying to initialize an Outlook
>options page. To work around this issue you will need to handle a different
>dialog message like WM_SIZE which you will have to include a flag since it is
>called twice at initialization (credit goes to S3ven).
>
>Hopefully this saves others debugging time...

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.aspx/outlook-prog-addins/200602/1

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net