Print Page | Close Window

GetWindowRect units

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=2582
Printed Date: 01 October 2024 at 11:47am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: GetWindowRect units
Posted By: Marek
Subject: GetWindowRect units
Date Posted: 15 July 2005 at 6:32pm

Does anyone know what kind of units the values are in when you call GetWindowRect() on the ActiveMenuBar? They seem weird.

-m




Replies:
Posted By: blazej
Date Posted: 20 July 2005 at 2:06pm
Hi

Take a look at ScaleMode property of the CommandBars control. If you want the unit to be pixels, you need to do something like this in your form's constructor or OnLoad event handler:

_commandBars.ScaleMode = XtremeCommandBars.XTPScaleMode.xtpScalePixel



Michal



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net