Professional UI Solutions
Site Map   /  Register
 
 

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.

Forums » Prof-UIS General Discussion » Maximize/Restore Down button's wrong hint Collapse All
Subject Author Date
Alexander Pavluk Jul 3, 2007 - 9:07 AM

When ribbon interface is using Maximize/Restore Down button hasn’t Restore Down hint, only Maximize.

Technical Support Jul 4, 2007 - 10:23 AM

We confirm this issue. Thank you. To fix it, please update the source code for the following method:

__EXT_MFC_SAFE_LPCTSTR CExtNcFrameImpl::NcFrameImpl_GetScTipText( UINT nSC ) const
{
const CWnd * pWndFrameImpl = NcFrameImpl_GetFrameWindow();
      ASSERT_VALID( pWndFrameImpl );
      if( m_rcNcFrameImpl_ScClose.IsRectEmpty() )
            NcFrameImpl_ReCacheScButtonRects();
      switch( nSC )
      {
      case SC_CLOSE:
      {
            NcFrameImpl_ExtractScTipText( pWndFrameImpl, nSC, m_strNcFrameImpl_TipClose );
            return LPCTSTR( m_strNcFrameImpl_TipClose );
      }
      case SC_MAXIMIZE:
      case SC_RESTORE:
      {
            if( pWndFrameImpl->IsZoomed() )
            {
                  nSC = SC_RESTORE;
                  NcFrameImpl_ExtractScTipText( pWndFrameImpl, nSC, m_strNcFrameImpl_TipRestore );
                  return LPCTSTR( m_strNcFrameImpl_TipRestore );
            }
            else
            {
                  nSC = SC_MAXIMIZE;
                  NcFrameImpl_ExtractScTipText( pWndFrameImpl, nSC, m_strNcFrameImpl_TipMaximize );
                  return LPCTSTR( m_strNcFrameImpl_TipMaximize );
            }
      }
      case SC_MINIMIZE:
      {
            if( pWndFrameImpl->IsIconic() )
            {
                  NcFrameImpl_ExtractScTipText( pWndFrameImpl, nSC, m_strNcFrameImpl_TipRestore );
                  return LPCTSTR( m_strNcFrameImpl_TipRestore );
            }
            else
            {
                  NcFrameImpl_ExtractScTipText( pWndFrameImpl, nSC, m_strNcFrameImpl_TipMinimize );
                  return LPCTSTR( m_strNcFrameImpl_TipMinimize );
            }
      }
      } // switch( nSC )
      return NULL;
}