次の方法で共有


CPropertyPage::OnWizardBack

このメンバー関数は、フレームワークによってユーザーがウィザードの[戻る]ボタンをクリックしたときに呼び出されます。

virtual LRESULT OnWizardBack();

戻り値

自動的に次のページに進みます。0; –ページを変更できない場合は 1。次のスレッド以外のページに移動するには、表示されるダイアログ識別子を返します。

解説

[戻る]ボタンが押されたときにユーザーが使用する必要のあるアクションを指定するには、このメンバー関数をオーバーライドします。

ウィザード型のプロパティ シートをする方法の詳細に CPropertySheet::SetWizardModeを参照してください。

使用例

// The Back button is selected from the propertysheet.  Get the selected 
// radio button of the page by looping through all buttons on the 
// pages.  m_radioColor is a member variable of 
// CColorPage (a CPropertyPage-derived class).  Its initial value 
// is initialized in OnInitDialog().
LRESULT CColorPage::OnWizardBack() 
{
   for (int id = IDC_RADIOBLACK; id <= IDC_RADIOGREEN; id++) 
   {
      CButton* button = (CButton*) GetDlgItem(id);
      if (button->GetCheck() == 1)
      {
         m_radioColor = id - IDC_RADIOBLACK;
         break;
      }
   }

   return CPropertyPage::OnWizardBack();
}

必要条件

ヘッダー : afxdlgs.h

参照

関連項目

CPropertyPage クラス

階層図

CPropertySheet::SetWizardMode