不好意思,打错了,应该是:
HWND hWnd=FindWindowEx((HWND)pParent,NULL,NULL,"取消");

解决方案 »

  1.   

    CPropertySheet::SetWizardButtons(PSWIZB_DISABLEDFINISH);
      

  2.   

    CPropertySheet::SetWizardButtons(PSWIZB_DISABLEDFINISH);
      

  3.   

    BOOL COptions::OnInitDialog() 
    {
    BOOL bResult = CPropertySheet::OnInitDialog();

    // TODO: Add your specialized code here
    CWnd* pwnd = GetDlgItem(IDOK);
    pwnd->EnableWindow(FALSE);
    return bResult;
    }
      

  4.   

    哦,说明一下,请将上面的“IDOK”换成“IDCANCEL”,其他还有“ID_APPLY_NOW”等。
      

  5.   

    应该是在PropertySheet中使用GetDlgItem(IDCANCEL)->EnableWindow(FALSE);在属性页中发个消息给PropertySheet来调用GetDlgItem(IDCANCEL)->EnableWindow(FALSE);,或用GetParent()也行。
      

  6.   

    vcmfc,你在说我吗?年轻人,别冲动!我刚试完确保无误后将其贴上来的!
      

  7.   

    呵呵……vcmfc可能是在说我,因为我的代码是向导方式下的
    另外,请两位去看看我的问题:http://www.csdn.net/expert/TopicView.asp?id=53294
      

  8.   

    我是说sxbyl,NiceFeather不要生气,对了,sxbyl,我没有玩过WebBrowser控件,力不从心。