Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - CXTPRibbonTab custom position
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPRibbonTab custom position

 Post Reply Post Reply
Author
Message
beria View Drop Down
Newbie
Newbie
Avatar

Joined: 22 April 2008
Location: Ukraine
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote beria Quote  Post ReplyReply Direct Link To This Post Topic: CXTPRibbonTab custom position
    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.


Back to Top
beria View Drop Down
Newbie
Newbie
Avatar

Joined: 22 April 2008
Location: Ukraine
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote beria Quote  Post ReplyReply Direct Link To This Post Posted: 31 March 2009 at 3:24am
any suggestion?
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.