CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 1999
    Location
    Johnson City, NY
    Posts
    43

    How to put tabs on bottom of CPropertyPage?

    I have created a CPropertyPage and added pages to it. Now how do I make the tabs appear at the bottom of the sheet instead of the top?


  2. #2
    Join Date
    May 1999
    Posts
    667

    Re: How to put tabs on bottom of CPropertyPage?

    Derive a class from CPropertySheet using class wizard, then add a handler for OnInitDialog and change the code to

    BOOL YourPropSheet::OnInitDialog()
    {
    CWnd* pWnd = GetDlgItem(AFX_IDC_TAB_CONTROL);
    ASSERT(pWnd);
    if (pWnd)
    pWnd->ModifyStyle(0, TCS_BOTTOM);
    return CPropertySheet::OnInitDialog();
    }


    HTH,
    Chris


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured