Once you have the sizes of the windows you can do one of two things. You can
just design your property page so it looks OK no matter which version of
Outlook is running. Or you can set up ratios of where each control is
related to the overall window size you have to work with. Then you would
move your controls based on the Outlook version. I usually just use a size
of 421 x 398 and place my controls based on that and leave white space if a
larger canvas is available.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm
"ryotyankou via OfficeKB.com" u48591@uwe wrote in message
news:907e894213b70@uwe...
Hi, Ken, thank you for your reply. The size, Do you mean the fixed pixels
which defined by outlook itself? 2007 is 473*440(include propertypage
header)
and 2003 is 421*398. No matter what the resolution ratio is, it is not
change.
The follow code can get this size(rectangle):
m_Control = GetParent();
CRect ParentRc, CurRc;
int xCord = 0, yCord = 0;
m_Control.GetClientRect(ParentRc);
GetWindowRect(CurRc);
How do i change the position? Could you please explain that more detailed?
Thanks very much.
Ken Slovak - [MVP - Outlook] wrote:
About the best way I've found is just to get the normal sizes for both
versions and set up your code based on that.
--
Message posted via http://www.officekb.com