S
sam
I've created a COM addin (using C++/VS2003/ATL7) for Outlook that adds a
property page (as a composite control that implements Olk:ropertyPage). It
mostly works, but I cannot control the size of my page.
When I add my control to a folder's property sheet (by specifying the ProgId
in the NameSpace's OptionPagesAdd), the whole sheet ends up around 50 pixels
too wide, causing all pages (mine and the standard ones) to have 50 pixels of
blank space to their right.
If I add the exact same control to the application's options dialog (same
ProgId in Application's OptionPagesAdd), it works fine. If I look at the
control in any other container (e.g., the ActiveX Control Test Container, or
a web page), it has the right size.
Outlook doesn't seem to ever ask for Width and Height, or _cx and _cy, in
either case. If I try to set the Width and Height properties to some tiny
value, it doesn't matter. If I expose _cx and _cy or cx and cy and set them
to a tiny value, it doesn't matter.
Reading the documentation on the PropertyPage object in Outlook's VB
reference help, I don't see anything about any other properties, methods, or
events that seem relevant.
Am I missing something? Is there additional documentation somewhere?
Thanks!
property page (as a composite control that implements Olk:ropertyPage). It
mostly works, but I cannot control the size of my page.
When I add my control to a folder's property sheet (by specifying the ProgId
in the NameSpace's OptionPagesAdd), the whole sheet ends up around 50 pixels
too wide, causing all pages (mine and the standard ones) to have 50 pixels of
blank space to their right.
If I add the exact same control to the application's options dialog (same
ProgId in Application's OptionPagesAdd), it works fine. If I look at the
control in any other container (e.g., the ActiveX Control Test Container, or
a web page), it has the right size.
Outlook doesn't seem to ever ask for Width and Height, or _cx and _cy, in
either case. If I try to set the Width and Height properties to some tiny
value, it doesn't matter. If I expose _cx and _cy or cx and cy and set them
to a tiny value, it doesn't matter.
Reading the documentation on the PropertyPage object in Outlook's VB
reference help, I don't see anything about any other properties, methods, or
events that seem relevant.
Am I missing something? Is there additional documentation somewhere?
Thanks!