VC + + Development of the application techniques three broadcast

Source: Internet
Author: User
Tags bool

1. Create a wizard dialog box

When using specific software, we often use wizard mode to create new files in this program, the most typical example is to use the wizard in Frontpage2000 or Word2000 to create a new Web page file or Word document. Do you have any impulse to see that other programs can provide a user-friendly wizard dialog box? If so, you might want to use the following code to Create a wizard dialog box:

以 下是引用片段:
void CMy56_s1Dlg::OnWiz()
  CSheet sheet;
  int iRet=sheet.DoModal();//返回ID_WIZFINISH或 IDCANCEL
//重载BOOL CPropertyPage::OnSetActive( )来控制显示的按钮
BOOL CPage1::OnSetActive()
  ((CPropertySheet*)GetParent())- >SetWizardButtons(PSWIZB_BACK|PSWIZB_NEXT);
  return CPropertyPage::OnSetActive();
BOOL CPage2::OnSetActive()
  ((CPropertySheet*)GetParent())->SetWizardButtons (PSWIZB_BACK|PSWIZB_FINISH);
  return CPropertyPage::OnSetActive();

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.