CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 1999
    Location
    Toulouse - France
    Posts
    135

    Property Page titles

    Hi!

    I have a property sheet control and all the property pages are the same but the title is different.
    Is it possible to change the title of a property page?

    Thanks in advance

    Sandrine


  2. #2
    Join Date
    Aug 1999
    Location
    Germany (Wiesbaden)
    Posts
    49

    Re: Property Page titles

    Hi,

    yes it is possible. Each single PropertyPage has to be an own dialog box. The title of the dialog box is the name of the register. Besides, you have to watch out that border is set to thin, the dialog is disactivated and that it is a child window, not a popup.

    Good luck,


    Fox

    "I don't like much, really, do I? [laugh] But what I do like, I love passionately!" (Pet shop boys)

  3. #3
    Join Date
    Aug 1999
    Posts
    6

    Re: Property Page titles

    Try the following code:

    If your PropertyPage is e.g. called
    CPropertyPage m_Mypage


    then you can set the title with

    m_Mypage.m_psp.pszTitle = _T("MyTitle");
    m_MyPage.m_psp.dwFlags |= PSP_USETITLE;




    Uli


  4. #4
    Join Date
    Aug 1999
    Posts
    6

    Re: Property Page titles

    Try the following code:

    If your PropertyPage is e.g. called
    CPropertyPage m_Mypage


    then you can set the title with

    m_Mypage.m_psp.pszTitle = _T("MyTitle");
    m_MyPage.m_psp.dwFlags |= PSP_USETITLE;




    PS: Do this before you call AddPage in the PropertySheet
    Uli


  5. #5
    Join Date
    Jun 1999
    Location
    Canada - Québec
    Posts
    273

    Re: Property Page titles

    are you try with a simple SetWindowText();


  6. #6
    Join Date
    Jun 1999
    Location
    Toulouse - France
    Posts
    135

    Re: Property Page titles



    Thanks a lot!

    I follow the instructions given by Ulli and it's OK!

    I have tried SetWindowText but it doesn't work: I write it before the AddPage, after the AddPage, in the OnInitDialog of the Property Page Class but I ve an assertion error

    Sandrine


  7. #7
    Join Date
    Jun 1999
    Location
    Canada - Québec
    Posts
    273

    Re: Property Page titles

    ok..
    alors c'est parfait!


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