Modifying the width of the property page
Posted on 1998-12-25
I created 1 property page and used the standard CPropertySheet. I placed a group box around the entire page except the caption. When I build it it I can manipulate the left, top, bottom ok by setting the parameters. But the right side seems to have a given length. My page is not that width b/c when I run the program the group box that i added to the page is not that big( And when I dropped the group box originally it was to cover the entire page). Does the width page have to be of a certain size or something?
Here is a smippet of how I empliment the code.
m_dlgPropSheet.AddPage( &m_dlgpgCoValues );
m_dlgPropSheet.Create( this, WS_CHILD | WS_VISIBLE, 0 );
m_dlgPropSheet.ModifyStyleEx( 0, WS_EX_CONTROLPARENT );
m_dlgPropSheet.ModifyStyle( 0, WS_TABSTOP );
m_dlgPropSheet.SetWindowPos( NULL, 165, 155, 290, 238, SWP_NOACTIVATE | SWP_NOZORDER );
m_dlgpgCoValues was derived from my CCoValues class that has a base class of CPropertyPage.
Like the only problem I have is not being able to set the correct width/right. It seems to stay at a certain width even though my page isnt that wide( its smaller )