View Single Post
  #3  
Old January 21st 09, 02:17 AM posted to microsoft.public.outlook.program_addins
ryotyankou via OfficeKB.com
external usenet poster
 
Posts: 101
Default How to set control position in outlook property page?

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

Ads