PropertySheet in a dialog
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
I have created a SDI application with a Form view. In the form view ihave inserted a property sheet like this...
void CMyFormView::OnInitialUpdate()
{
CFormView::OnInitialUpdate();m\_PropSheet.AddPage(&m\_Page1); m\_PropSheet.AddPage(&m\_Page2); m\_PropSheet.Create(this, WS\_CHILD | WS\_VISIBLE, 0); m\_PropSheet.ModifyStyleEx (0, WS\_EX\_CONTROLPARENT); m\_PropSheet.ModifyStyle( 0, WS\_TABSTOP ); m\_bViewInitiated = true;
}
I wanted the property sheet to span the whole area of the form view, so i have written few line for that as...
void CMyFormView::OnSize(UINT nType, int cx, int cy)
{
CFormView::OnSize(nType, cx, cy);
if(m_bViewInitiated)
{
m_PropSheet.SetWindowPos((CWnd*)this, 0, 0, cx, cy,SWP_NOZORDER | SWP_NOACTIVATE );
}
}But the property sheet is not behaving as i expected. Its size remains same as the property pages sizes given at the creation time. Can you help me with this... Thank you Tritva
modified on Monday, December 15, 2008 5:33 AM