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 Tech Support » CExtTabMdiOneNoteWnd part2 question Collapse All
Subject Author Date
tera t Jun 18, 2008 - 8:17 PM

Hello.


I want to widen the expression width of the MDI tab.


Technical Support Jun 23, 2008 - 7:20 AM

Here is the class that increases the height of the MDI tab strip by 20 pixels:

class CMyTabMdiOneNoteWnd : public CExtTabMdiOneNoteWnd
{
public:
            virtual INT OnTabWndGetParentSizingMargin(
                        DWORD dwOrientation
                        ) const
            {
                        INT nMargin = CExtTabMdiOneNoteWnd::OnTabWndGetParentSizingMargin( dwOrientation );
                        return ( nMargin + 20 );
            }
            virtual void OnTabWndMeasureItemAreaMargins(
                        LONG & nSpaceBefore,
                        LONG & nSpaceAfter,
                        LONG & nSpaceOver
                        )
            {
                        ASSERT_VALID( this );
                        CExtTabMdiOneNoteWnd::OnTabWndMeasureItemAreaMargins(
                                    nSpaceBefore,
                                    nSpaceAfter,
                                    nSpaceOver
                                    );
                        nSpaceOver += 20;
            }
};