Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Oliver Rau
|
Jun 19, 2008 - 6:41 AM
|
Dear ProfUIS-team,
the "Recent Documents" list in a ribbonbar’s file menu obviously has no automatic vertical resizing if there are some more controls added to the left (see screenshot of modified RibbonBarMdi demo). Is there a way to achieve a dynamic resizing? Thanks in advance.
Martin
|
|
Technical Support
|
Jun 22, 2008 - 1:20 PM
|
Thank you for reporting this issue. You can fix it by update the source code for the following method: CSize CExtRibbonGalleryPopupMenuWnd::_CalcTrackSize()
{
if( m_bRibbonFileMenuMode )
m_sizeChildControl.cy = max( m_sizeChildControl.cy, m_sizeFullItems.cy );
CSize _sizeAdjust = m_sizeChildControl;
CRect rcMB = OnQueryMenuBorderMetrics();
int nMenuShadowSize = OnQueryMenuShadowSize();
if( m_bRibbonFileMenuMode )
_sizeAdjust.cy += nMenuShadowSize + rcMB.top + rcMB.bottom;
else
_sizeAdjust.cx += nMenuShadowSize + rcMB.left + rcMB.right;
CSize _size = CExtPopupMenuWnd::_CalcTrackSize();
if( m_bRibbonFileMenuMode )
_size.cy = max( _size.cy, _sizeAdjust.cy );
else
{
_size.cx = max( _size.cx, _sizeAdjust.cx );
INT nWidthFullItems = _size.cx - nMenuShadowSize - rcMB.left - rcMB.right;
m_sizeChildControl.cx = max( nWidthFullItems, m_sizeChildControl.cx );
}
return _size;
}
|
|