Change Title Bar Text of CPropertySheet 
Author Message
 Change Title Bar Text of CPropertySheet

How can I change the title bar text of a propertysheet in wizard mode?

Thanks for help
Guenther Raunigg



Sat, 03 Jun 2000 03:00:00 GMT  
 Change Title Bar Text of CPropertySheet

it takes the title of pages (since you might want to have different titles
like page 1of 6 ) from the Prop page's diaolg resource change the title for
each pages resource. If you want the same title then keep it same for al the
pages.
There might be simpler method which I might not be aware of but this works.

--
======================================================
Raejsh Parikh - Microsoft Certified Solution Developer
Madras - India
Voice : 91 (44) 642360

======================================================

Quote:

>How can I change the title bar text of a propertysheet in wizard mode?

>Thanks for help
>Guenther Raunigg




Sat, 03 Jun 2000 03:00:00 GMT  
 Change Title Bar Text of CPropertySheet

For the current page use SetWindowText on the CPropertySheet and as
Rajesh said, if you are setting for the other tabs other than the
current one, just change tab text..
Following code will work for all the situations..

BOOL CWizardSheet::SetPageTitle (int nPage, LPTSTR pszText) {

        CPropertyPage *pPage = GetPage (nPage);
        CTabCtrl* pTab = GetTabControl();
    ASSERT (pTab);

        if (GetActivePage() == pPage)
                SetWindowText (pszText); //If its the active page
        //If its not the active page, just set the tab item
        TC_ITEM ti;
        ti.mask = TCIF_TEXT;
        ti.pszText = pszText;
        VERIFY (pTab->SetItem (nPage, &ti));

    return TRUE;

Quote:
}

> >How can I change the title bar text of a propertysheet in wizard mode?

> >Thanks for help
> >Guenther Raunigg


--
Girish Bharadwaj
Software developer
http://members.tripod.com/~GBharadwaj/index.html




Sat, 03 Jun 2000 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Changing title bar text

2. How to programmatically change title bar text.

3. Changing text on title bar

4. Changing title bar text

5. How to change Child Title Bar Text?

6. Changing Title Bar Text of a Child Window

7. Changing text in title bar

8. Changing Title Bar Text of a Child Window

9. How to change the title of a CPropertySheet in Wizard mode on the fly

10. Text box on Title bar

11. show a text in the title bar

12. Text on title bar - Help!

 

 
Powered by phpBB® Forum Software