Print Page | Close Window

CXTPRibbonTab custom position

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=13851
Printed Date: 28 February 2025 at 2:48am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPRibbonTab custom position
Posted By: beria
Subject: CXTPRibbonTab custom position
Date Posted: 30 March 2009 at 5:35am
Hi. How to set tab postion on Ribbon Bar?
I have crated Ribbon on dialog.
...
CXTPRibbonTab* pTab1 = m_RibbonBar->AddTab(L"Tab 1");
RepositionBars(AFX_IDW_CONTROLBAR_FIRST, AFX_IDW_CONTROLBAR_LAST, 0);
CRect tabRect(55,35,135,83);
pTabOverview->SetRect(tabRect);
...
It`s OK, but pTab1 behaves like it has old RECT. Visually tab`s rect is changed but reaction of tab on events like (MOUSEMOVE, LBUTTONDOWN) is mismatch new RECT.





Replies:
Posted By: beria
Date Posted: 31 March 2009 at 3:24am
any suggestion?



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