Print Page | Close Window

Get CXTPToolbar rect

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=3450
Printed Date: 09 November 2025 at 7:04pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Get CXTPToolbar rect
Posted By: yoavo
Subject: Get CXTPToolbar rect
Date Posted: 28 December 2005 at 2:48am

Hi,

I need to get the dimensions of a CXTPToolbar just after it has been created. I use: GetWindowRect method on the toolbar. The problem is that I get an empty rect (bottom equals top, right equal left). I tried to add RecalcLayout() before calling the method, but it works only for toolbars that are docked, and I need the dimensions for a floating toolbar.

Yoav.




Replies:
Posted By: Oleg
Date Posted: 30 December 2005 at 1:49am

Hello,

Call pToolBar->OnRecalcLayout();



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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