Can U hide Back Button from CPropertyPage in the First Page?

Hi,
There is a little bit confusion.... The problem is I have created property pages(3 pages) however I don't want Back Button in the first page. I have tried a lot. I have used SetFinishedText(L"Next"); after SetWizardButton(PSWIZB_NEXT); in OnSetActive() which hides the Back Button but on the next page the Back Button is also hidden due to my OnSetActive(). That's the problem. I want the Back Button from next Page onwards. What should I do?
Thanks,
[477 byte] By [braveYOU] at [2007-11-19 9:00:30]
# 1 Re: Can U hide Back Button from CPropertyPage in the First Page?
[ Moved thread ]
Andreas Masur at 2007-11-11 0:21:59 >
# 2 Re: Can U hide Back Button from CPropertyPage in the First Page?
Override OnKillActive and OnSetActive.

BOOL CYourPropertyPage1::OnKillActive()
{
CPropertySheet* pPropSheet = (CPropertySheet*) GetParent();
pPropSheet->GetDlgItem(ID_WIZBACK)->ShowWindow(SW_SHOW);

return CPropertyPage::OnKillActive();
}

BOOL CYourPropertyPage1::OnSetActive()
{
CPropertySheet* pPropSheet = (CPropertySheet*) GetParent();
pPropSheet->GetDlgItem(ID_WIZBACK)->ShowWindow(SW_HIDE);

return CPropertyPage::OnSetActive();
}
JohnCz at 2007-11-11 0:22:59 >
# 3 Re: Can U hide Back Button from CPropertyPage in the First Page?
Thanks John for your great help
braveYOU at 2007-11-11 0:23:55 >