CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Location
    London, England
    Posts
    42

    How do I change the caption of a PropertyPage

    How do I change the caption of a PropertyPage at runtime?


  2. #2
    Join Date
    Apr 1999
    Posts
    32

    Re: How do I change the caption of a PropertyPage

    It depends by what you mean by a caption, when you refer to a caption, it usually means you want to change the title of the propertysheet.

    but you want to change the caption of the property page, by this im thinking you want to change the tab text?

    pPropSht->SetWindowText(_T("Caption"));

    or

    TC_ITEM tcItem; tcItem.mask = TCIF_TEXT;
    tcItem.pszText = (LPTSTR)((LPCTSTR)_T("Tab"));
    pPropSheet->GetTabControl()->SetItem(0, &tcItem );

    regards
    j...


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