A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Options Pages with VS2005



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 15th 06, 07:45 AM posted to microsoft.public.outlook.program_addins
Mark W via OfficeKB.com
external usenet poster
 
Posts: 3
Default Options Pages with VS2005

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.a...ddins/200602/1
Ads
  #2  
Old February 16th 06, 03:28 AM posted to microsoft.public.outlook.program_addins
Mark W via OfficeKB.com
external usenet poster
 
Posts: 3
Default Options Pages with VS2005

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:
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.a...ddins/200602/1
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I remove pages from a form [other than first page]? George Kirby Outlook - Using Forms 1 March 7th 06 11:55 PM
Cannot send web pages by email allan Outlook - General Queries 0 March 7th 06 03:47 AM
Create more pages on a form Frank Fernandez Outlook - Using Forms 1 February 15th 06 07:09 PM
How do I print on preprinted calandar pages? Motherof4 Outlook - Calandaring 1 February 2nd 06 03:11 AM
Outlook 2003 | Tools | Options | Calendar options Sue Mosher [MVP-Outlook] Outlook - General Queries 0 January 18th 06 09:59 PM


All times are GMT +1. The time now is 07:36 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2024 Outlook Banter.
The comments are property of their posters.