Despite ShowExpandButton(TRUE) no buttons |
Post Reply |
Author | |
mgampi
Senior Member Joined: 14 July 2003 Status: Offline Points: 1201 |
Post Options
Thanks(0)
Posted: 10 March 2008 at 12:07pm |
Hi;
I created a toolbar within my on CWnd derives class. This class is the child of a docking pane also.
When I shrink the pane the toolbar expand button appears but none of the hidden buttons are shown in the popup window. What's wrong here?
I built the toolbar / commandbars object like this:
Any help is very welcome!
|
|
Martin Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 |
|
mgampi
Senior Member Joined: 14 July 2003 Status: Offline Points: 1201 |
Post Options
Thanks(0)
|
Hi,
if someone else encounters the same problem. The solution is a fix in XTPToolbar.cpp function BOOL CXTPToolBar::CControlButtonExpand::OnSetPopup(BOOL bPopup)
replace CXTPCommandBars* pCommandBars = m_pParent->GetCommandBars(); if (pCommandBars) to CXTPCommandBars* pCommandBars = m_pParent->GetCommandBars(); if (pCommandBars && ((CXTPToolBar*)m_pParent)->m_pDockContext) Many thanks to Oleg!!! |
|
Martin Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 |
|
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 |