Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
9089253afThis file is pinned to the selected release. Download the original to open it in your design tool.
#pragma once
class FrmRuler : public CMFCBaseToolBar
{
protected:
long winSize;
bool bHorz;
public:
void SetWidth( long width )
{
winSize= width;
ASSERT_KINDOF( CFrameWnd, GetParent( ) );
static_cast<CFrameWnd*>( GetParent( ) )->RecalcLayout( );
}
long GetWidth( ) const { return winSize; }
protected:
virtual CSize CalcFixedLayout( BOOL bStretch, BOOL bHorz )
{
if( bHorz )
return CSize( 0, winSize );
else
return CSize( winSize, 0 );
}
//virtual void OnUpdateCmdUI( CFrameWnd* pTarget, BOOL bDisableIfNoHndler ) { }
//virtual CSize CalcDynamicLayout( int nLength, DWORD nMode ) { return CSize( 10, 10 ); }
public:
virtual BOOL Create(CWnd* pParentWnd, UINT nID= 0x00, long size= 0, bool bHorz= true );
DECLARE_MESSAGE_MAP( )
afx_msg void OnPaint( );
};