Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. PropertySheet in a dialog

PropertySheet in a dialog

Scheduled Pinned Locked Moved C / C++ / MFC
help
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kiran Pinjala
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups