![]() |
CXTPDockContext not accessible :( |
Post Reply ![]() |
Author | |
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() Posted: 31 August 2010 at 4:25am |
I want to put a "dead" label on my toolbar. To get the desired behavior, I override CXTPToolBar::OnLButtonDown as shown below. The problem is that I get this compilation error:
error C2027: use of undefined type 'CXTPDockContext'
Is there a workaround?
void CMyToolBar::OnLButtonDown(UINT nFlags, CPoint point)
{ if (m_barPosition == xtpBarFloating) SetWindowPos(&CWnd::wndTop, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE | SWP_NOACTIVATE); CXTPControl *pControl = m_pControls->HitTest(point); if (m_pDockContext && ((m_dwFlags & (xtpFlagAlignAny | xtpFlagFloating)) != 0)) |
|
PokerMemento - http://www.pokermemento.com/
|
|
![]() |
|
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() |
Had to change CommandBars\Includes.h:
#include "XTPFrameWnd.h"
#include "XTPDockBar.h" #include "XTPDockContext.h" #include "XTPCommandBars.h" |
|
PokerMemento - http://www.pokermemento.com/
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |