Click here to Skip to main content
15,444,203 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to calculate power (Exponent) Pin
vikas amin27-Dec-05 1:37
Membervikas amin27-Dec-05 1:37 
GeneralRe: How to calculate power (Exponent) Pin
toxcct27-Dec-05 1:39
Membertoxcct27-Dec-05 1:39 
GeneralRe: How to calculate power (Exponent) Pin
Owner drawn27-Dec-05 1:56
MemberOwner drawn27-Dec-05 1:56 
GeneralRe: How to calculate power (Exponent) Pin
TheGreatAndPowerfulOz5-Jan-06 20:10
MemberTheGreatAndPowerfulOz5-Jan-06 20:10 
GeneralRe: How to calculate power (Exponent) Pin
toxcct6-Jan-06 0:41
Membertoxcct6-Jan-06 0:41 
QuestionProperty Page Tab should highlight Pin
RamL26-Dec-05 22:32
MemberRamL26-Dec-05 22:32 
AnswerRe: Property Page Tab should highlight Pin
Owner drawn26-Dec-05 23:20
MemberOwner drawn26-Dec-05 23:20 
GeneralRe: Property Page Tab should highlight Pin
RamL28-Dec-05 2:00
MemberRamL28-Dec-05 2:00 
Thanks,

I want to re-modify my question.

When we select the property sheet page tabs, then the selected page tab text should change the color of page tab text or highlight the tab text.

Error is comming from the fallowing snippet that is,

<big>Error : " 'CPropertySheet::GetTabControl' : illegal call of non-static member function"</big>

How to access the GetTabContol() from CPropertyPage derived class?

<code>BEGIN_MESSAGE_MAP(CPage2, CPropertyPage)
//{{AFX_MSG_MAP(CPage2)
// NOTE: the ClassWizard will add message map macros here
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

BOOL CPage2::OnSetActive()
{
CTabCtrl *pTabCtrl = CPropertySheet::GetTabControl();

TC_ITEM item;
item.mask = TCIF_TEXT;
item.pszText = "New Label";

pTabCtrl->SetItem (1, &item );

// CTabCtrl::HighlightItem(1, TRUE);

return CPropertyPage::OnSetActive();
}</code>

wating for you reply,

- Ramesh.
Questioninstaller for oracle db Pin
prabhathgk26-Dec-05 22:12
Memberprabhathgk26-Dec-05 22:12 
QuestionFile I/O que Pin
LiYS26-Dec-05 22:03
MemberLiYS26-Dec-05 22:03 
AnswerRe: File I/O que Pin
ThatsAlok26-Dec-05 22:24
MemberThatsAlok26-Dec-05 22:24 
GeneralRe: File I/O que Pin
LiYS26-Dec-05 22:50
MemberLiYS26-Dec-05 22:50 
GeneralRe: File I/O que Pin
ThatsAlok26-Dec-05 23:51
MemberThatsAlok26-Dec-05 23:51 
AnswerRe: File I/O que Pin
toxcct26-Dec-05 22:40
Membertoxcct26-Dec-05 22:40 
GeneralRe: File I/O que Pin
LiYS26-Dec-05 22:47
MemberLiYS26-Dec-05 22:47 
GeneralRe: File I/O que Pin
LiYS26-Dec-05 22:51
MemberLiYS26-Dec-05 22:51 
GeneralRe: File I/O que Pin
Prakash Nadar27-Dec-05 0:03
MemberPrakash Nadar27-Dec-05 0:03 
GeneralRe: File I/O que Pin
vikas amin27-Dec-05 0:43
Membervikas amin27-Dec-05 0:43 
AnswerRe: File I/O que Pin
Owner drawn26-Dec-05 23:22
MemberOwner drawn26-Dec-05 23:22 
AnswerRe: File I/O que Pin
krmed27-Dec-05 4:57
Memberkrmed27-Dec-05 4:57 
QuestionHOT TO TYPE CAST OJBECT TO VARIANT Pin
gpshadrach26-Dec-05 21:45
Membergpshadrach26-Dec-05 21:45 
AnswerRe: HOT TO TYPE CAST OJBECT TO VARIANT Pin
AntonGogolev26-Dec-05 21:58
MemberAntonGogolev26-Dec-05 21:58 
Questiontemplate class Pin
Nishad S26-Dec-05 21:29
MemberNishad S26-Dec-05 21:29 
AnswerRe: template class Pin
vikas amin27-Dec-05 0:49
Membervikas amin27-Dec-05 0:49 
QuestionGUId of a COM object Pin
ragavan26-Dec-05 21:25
Memberragavan26-Dec-05 21:25 

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.