Click here to Skip to main content
15,913,939 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Named Pipes Vs Sockets Pin
GuimaSun11-Mar-04 0:40
GuimaSun11-Mar-04 0:40 
GeneralRe: Named Pipes Vs Sockets Pin
vikramlinux11-Mar-04 1:00
vikramlinux11-Mar-04 1:00 
General.net application and C dll Pin
mosquitooth10-Mar-04 21:39
mosquitooth10-Mar-04 21:39 
GeneralRe: .net application and C dll Pin
Antti Keskinen10-Mar-04 22:21
Antti Keskinen10-Mar-04 22:21 
GeneralDebugging symbols for Windows XP Pin
rrrado10-Mar-04 21:15
rrrado10-Mar-04 21:15 
GeneralPropertyPage Title Pin
Florin Ochiana10-Mar-04 20:30
Florin Ochiana10-Mar-04 20:30 
GeneralRe: PropertyPage Title Pin
Prakash Nadar10-Mar-04 21:36
Prakash Nadar10-Mar-04 21:36 
GeneralRe: PropertyPage Title Pin
Antti Keskinen10-Mar-04 21:43
Antti Keskinen10-Mar-04 21:43 
A property sheet, when ran, consists of a property sheet object (the parent), a collection of property page objects (individual dialogs) and a tab control used to switch between the pages. During the first creation stage, the tab texts are taken from the dialog template titles. Changing these pre-build will alter the tab texts.

During run-time, you can change the title by first getting the property sheet object, then asking for the tab control via GetTabCtrl. A CTabCtrl class has a method called SetItem that takes the index of the page and a TCITEM structure.

Assuming in the following example, that m_wndPropertySheet was a pointer to CPropertyPage class, this code fragment will alter the text of the first tab
// Get the tab control
CTabCtrl* m_ptrTab = m_wndPropertySheet->GetTabCtrl();<DIV>

// Construct a TCITEM structure
TCITEM ti;
ti.mask = TCIF_TEXT;
ti.pszText = "New tab text";<DIV>

// Alter the text
m_ptrTab->SetItem( 0, &ti );
Hope this will help you out. Naturally, if you are unsure where the correct page is, you can use GetItem ínstead of SetItem to get the item's text and determining the index from there...

-Antti Keskinen

----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
QuestionHow to insert/delete some content of text file fastly? Pin
freehawk10-Mar-04 20:25
freehawk10-Mar-04 20:25 
AnswerRe: How to insert/delete some content of text file fastly? Pin
rrrado10-Mar-04 21:19
rrrado10-Mar-04 21:19 
GeneralRe: How to insert/delete some content of text file fastly? Pin
freehawk10-Mar-04 22:17
freehawk10-Mar-04 22:17 
AnswerRe: How to insert/delete some content of text file fastly? Pin
David Crow11-Mar-04 2:58
David Crow11-Mar-04 2:58 
Generalconvert double to char! Pin
catngo10-Mar-04 19:57
catngo10-Mar-04 19:57 
GeneralRe: convert double to char! Pin
Monty210-Mar-04 20:09
Monty210-Mar-04 20:09 
GeneralRe: convert double to char! Pin
catngo10-Mar-04 20:12
catngo10-Mar-04 20:12 
GeneralRe: convert double to char! Pin
Ellis Li10-Mar-04 20:14
Ellis Li10-Mar-04 20:14 
Generalm_pRecentFileList... Pin
Neha10-Mar-04 19:19
Neha10-Mar-04 19:19 
GeneralRe: m_pRecentFileList... Pin
Prakash Nadar10-Mar-04 23:33
Prakash Nadar10-Mar-04 23:33 
GeneralRe: m_pRecentFileList... Pin
Neha10-Mar-04 23:43
Neha10-Mar-04 23:43 
GeneralRe: m_pRecentFileList... Pin
David Crow11-Mar-04 3:14
David Crow11-Mar-04 3:14 
GeneralMake underline on menu Pin
Member 80845910-Mar-04 19:10
Member 80845910-Mar-04 19:10 
GeneralRe: Make underline on menu Pin
Roger Allen11-Mar-04 0:49
Roger Allen11-Mar-04 0:49 
GeneralRe: Make underline on menu Pin
David Crow11-Mar-04 3:15
David Crow11-Mar-04 3:15 
GeneralUsing C# controls in MFC Dialog Pin
Jain Mohit10-Mar-04 18:47
Jain Mohit10-Mar-04 18:47 
QuestionHow to check a folder existed or not ? Pin
nguyen_nd10-Mar-04 18:05
nguyen_nd10-Mar-04 18:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.