Code:
if(m_pParentWnd->IsWndStyle( WBS_HELP ) )
{
m_awndButton[ WTBID_HELP - 10000 ].Create( _T( "?" ), 0, CRect( m_nButtonMax * 16, 1 , m_nButtonMax * 16 + 16, 20), this, WTBID_HELP ), m_nButtonMax++;
//#ifdef __CLIENT
m_awndButton[ WTBID_HELP - 10000 ].SetTexture( m_pApp->m_pd3dDevice, MakePath( DIR_THEME, "ButtWndHelp.tga" ), TRUE );
m_awndButton[ WTBID_HELP - 10000 ].FitTextureSize();
//#endif
}
remove WBS_HELP from cwndstatus
positioning the X
Code:
if( m_pParentWnd->m_bNoCloseButton == FALSE )
{
m_awndButton[ WTBID_CLOSE - 10000 ].Create( _T( "x" ), 0, CRect( m_nButtonMax * 16, 1 , m_nButtonMax * 16 + 16, 20), this, WTBID_CLOSE ), m_nButtonMax++;
m_awndButton[ WTBID_CLOSE - 10000 ].SetTexture( m_pApp->m_pd3dDevice, MakePath( DIR_THEME, "ButtWndExit.tga" ), TRUE );
m_awndButton[ WTBID_CLOSE - 10000 ].FitTextureSize();
}
please in advance?
the Name and level is made with SetTitle
so CWndBase::Paintframe adjust height.