Originally posted by: Zulkefle Mohamad
I'm already created a property sheet and it's working well. Now i want to change the tab size and layout from layout horizontal to vertical. Could you please give the procrdure to do this.
Thank you.
Zulkefle
Originally posted by: zht
plese help.
ReplyOriginally posted by: Art Gorr
In a CPropertyPage derived class constructor:
m_strCaption = _T("Hello world");
m_psp.pszTitle = m_strCaption;
m_psp.dwFlags |= PSP_USETITLE;
Originally posted by: Dongoh
To change each page's label, I overrided OnInitDialog in CMyPropertySheet.
BOOL CMyPropertySheet::OnInitDialog()
for( int i = 0; i < GetPageCount(); i++ )
But, the only first page's label did not change.
Please, leave some comment about my problem.
In my code, I used CPropertySheet and CPropertyPage for implementing a wizard.
{
BOOL bResult = CPropertySheet::OnInitDialog();
TC_ITEM tcItem;
tcItem.mask = TCIF_TEXT;
tcItem.cchTextMax = _MAX_PATH;
tcItem.pszText = _T("label");
(CTabCtrl*)(GetTabControl())->SetItem( i, &tcItem );
return bResult;
}
What I did miss or mistake?
Thank you in advance.
Reply
Originally posted by: likehood
^^
ReplyOriginally posted by: Karlos
Thanks, this works great.
Originally posted by: Steven
How to change the color of the tabs? I want a colorful tabctrl. thanks.
ReplyOriginally posted by: Dave
the SetBkColor method is not supported for CTabCtrl. What is the easiest way to change the color of the active and non-active tabs?
cheers
Dave
ReplyOriginally posted by: wanliguo
it's very good,thanks a lot
ReplyOriginally posted by: Chilli Palmer
Anyone know how to drag the tab control to another position in the sheet!?
Cheers.
Reply