Print Page | Close Window

how to get the client rect of a CXTPTabControl

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=15034
Printed Date: 22 November 2024 at 6:43am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: how to get the client rect of a CXTPTabControl
Posted By: rienzi
Subject: how to get the client rect of a CXTPTabControl
Date Posted: 24 August 2009 at 5:10am
I can not obtain a CRect object from a CXTPTabControl object with the following codes


CRect rect;
rect=m_wndTabControl.GetClientRect(); //m_wndTabControl is a CXTPTabControl object


because the function GetClientRect() is a member function of CWnd and a member function of CXTPTabManager, and CXTPTabControl inherits both of the two classes. The compiler does not know which member function to use when I call GetClientRect(); function from m_wndTabControl



I want to know how can I get the client rect of a object of CXTPTabControl class



Replies:
Posted By: Oleg
Date Posted: 24 August 2009 at 8:39am
Hi,
 
try call it as m_wndTabControl.CXTPTabManager::GetClientRect();


-------------
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