Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Get CXTPToolbar rect
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Get CXTPToolbar rect

 Post Reply Post Reply
Author
Message
yoavo View Drop Down
Senior Member
Senior Member


Joined: 29 February 2004
Location: Israel
Status: Offline
Points: 140
Post Options Post Options   Thanks (0) Thanks(0)   Quote yoavo Quote  Post ReplyReply Direct Link To This Post Topic: Get CXTPToolbar rect
    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.

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 30 December 2005 at 1:49am

Hello,

Call pToolBar->OnRecalcLayout();

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.047 seconds.