Perfect! I'm using the first method you suggested, but how do I implement that method into the propertysheets of my form. It's the method you gave me a while ago:
Code:
void CTykeView::CreateTabControl()
{
pSheet = new CPropertySheet( "My Tab", this, 0);
pSheet->AddPage( &m_Page1 );
pSheet->AddPage( &m_Page2 );
pSheet->AddPage( &m_Page3 );
pSheet->Create( this, WS_CHILD | WS_VISIBLE );
CRect r;
m_staticPlaceHolder.GetWindowRect( &r );
ScreenToClient( &r );
pSheet->SetWindowPos( pSheet, r.top, r.left, 0, 0, SWP_NOSIZE | SWP_NOZORDER );
return;
}
I've tried initialising the string with m_pSet->m_Name ( m_str = _T(m_pSet->m_Name); ) That compiles but doesnt run