|
|
|
|
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 |
|
tera t
|
May 22, 2008 - 3:18 AM
|
Hello.
(1), I want to display a non-selection tab thinly. (2), I want to take the space of this point widely. 
Thanks,
|
|
tera t
|
May 22, 2008 - 10:28 PM
|
Hello. I ask you for an answer. Thanks,
|
|
Technical Support
|
May 23, 2008 - 1:59 PM
|
Please implement the CExtTabWnd::OnTabWndGetParentSizingMargin() virtual method like as follows: virtual INT OnTabWndGetParentSizingMargin( DWORD dwOrientation ) const
{
ASSERT_VALID( this );
INT nRetVal = __parent_tab_class_name_here__ :: OnTabWndGetParentSizingMargin( dwOrientation );
switch( dwOrientation )
{
case __ETWS_ORIENT_TOP:
{
INT nPixelCountToIncreaseHeightOfTopDockedTabWindow = . . .
nRetVal += nPixelCountToIncreaseTopDockedTabWindow;
}
break;
case __ETWS_ORIENT_BOTTOM:
{
INT nPixelCountToIncreaseHeightOfBottomDockedTabWindow = . . .
nRetVal += nPixelCountToIncreaseHeightOfBottomDockedTabWindow;
}
break;
case __ETWS_ORIENT_LEFT:
{
INT nPixelCountToIncreaseWidthOfLeftDockedTabWindow = . . .
nRetVal += nPixelCountToIncreaseTopDockedTabWindow;
}
break;
case __ETWS_ORIENT_RIGHT:
{
INT nPixelCountToIncreaseWidthOfRightDockedTabWindow = . . .
nRetVal += nPixelCountToIncreaseTopDockedTabWindow;
}
break;
#if (defined _DEBUG)
default:
ASSERT( FALSE );
return 0;
#endif // _DEBUG
} // switch( dwOrientation )
return nRetVal;
}
|
|
Technical Support
|
May 22, 2008 - 12:22 PM
|
You should override the following virtual method of the CExtTabWnd class: virtual void OnTabWndUpdateItemMeasure(
TAB_ITEM_INFO * pTii,
CDC & dcMeasure,
CSize & sizePreCalc
); The sizePreCalc parameter contains the size of the pTii tab item measured by default . You should just make it wider and higher.
|
|
tera t
|
May 22, 2008 - 10:30 PM
|
Hello. Will such an expression be possible, too? 
Thanks,
|
|
Technical Support
|
May 23, 2008 - 1:46 PM
|
You can implement the CExtTabWnd::OnTabWndGetParentSizingMargin() virtual method like as follows: virtual INT OnTabWndGetParentSizingMargin( DWORD dwOrientation ) const
{
ASSERT_VALID( this );
INT nRetVal = __parent_tab_class_name_here__ :: OnTabWndGetParentSizingMargin( dwOrientation );
switch( dwOrientation )
{
case __ETWS_ORIENT_TOP:
{
INT nPixelCountToIncreaseHeightOfTopDockedTabWindow = . . .
nRetVal += nPixelCountToIncreaseTopDockedTabWindow;
}
break;
case __ETWS_ORIENT_BOTTOM:
{
INT nPixelCountToIncreaseHeightOfBottomDockedTabWindow = . . .
nRetVal += nPixelCountToIncreaseHeightOfBottomDockedTabWindow;
}
break;
case __ETWS_ORIENT_LEFT:
{
INT nPixelCountToIncreaseWidthOfLeftDockedTabWindow = . . .
nRetVal += nPixelCountToIncreaseTopDockedTabWindow;
}
break;
case __ETWS_ORIENT_RIGHT:
{
INT nPixelCountToIncreaseWidthOfRightDockedTabWindow = . . .
nRetVal += nPixelCountToIncreaseTopDockedTabWindow;
}
break;
#if (defined _DEBUG)
default:
ASSERT( FALSE );
return 0;
#endif // _DEBUG
} // switch( dwOrientation )
return nRetVal;
}
|
|