Changing tab name.

Posted on 1999-07-14
Medium Priority
Last Modified: 2013-11-20
I have created a CPropertySheet amd placed it on a Dialog resourse, then I am adding CPropertyPage derived Dialogs. I want to be able to change the Tab names runtime. I have tried to use SetWindowText, it doesn't work. The tab title doesn't change. It works on the main dialog but how can I change it on the Property Pages?
Question by:joakimf
LVL 31

Accepted Solution

Zoppo earned 400 total points
ID: 1310025
Hi joakimf,

You can use CPropertySheet::GetTabCtrl() to get the attached tab control with which you can use CTabCtrl::SetItem() to change the text of any tab.

hope that helps,


Author Comment

ID: 1310026
Excellent answer..

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Watch the video to know how one can repair corrupt Exchange OST file effortlessly and convert OST emails to MS Outlook PST file format by using Kernel for OST to PST converter tool. It can convert OST to MSG, MBOX, EML to access them. It can migrate…

600 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question