class CSheet : public CPropertySheet
...
BOOL CSheet::OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult)
{
// TODO: Add your specialized code here and/or call the base class
NMHDR* pnmh = (NMHDR*)lParam; if (TCN_SELCHANGE == pnmh->code)
{
// get the current page index
int nCurrentPage = GetActiveIndex ();
if(nCurrentPage ==1)
{
AfxMessageBox("can not active this tab");
PostMessage (PSM_SETCURSEL, 0);
}
}
return CPropertySheet::OnNotify(wParam, lParam, pResult);
}
...
BOOL CSheet::OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult)
{
// TODO: Add your specialized code here and/or call the base class
NMHDR* pnmh = (NMHDR*)lParam; if (TCN_SELCHANGE == pnmh->code)
{
// get the current page index
int nCurrentPage = GetActiveIndex ();
if(nCurrentPage ==1)
{
AfxMessageBox("can not active this tab");
PostMessage (PSM_SETCURSEL, 0);
}
}
return CPropertySheet::OnNotify(wParam, lParam, pResult);
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货