Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - GetWindowRect units
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

GetWindowRect units

 Post Reply Post Reply
Author
Message
Marek View Drop Down
Groupie
Groupie


Joined: 02 February 2005
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote Marek Quote  Post ReplyReply Direct Link To This Post Topic: GetWindowRect units
    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

Back to Top
blazej View Drop Down
Groupie
Groupie


Joined: 09 February 2005
Location: Canada
Status: Offline
Points: 53
Post Options Post Options   Thanks (0) Thanks(0)   Quote blazej Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.