次の方法で共有


CMFCPropertySheetCategoryInfo Class

ツリー コントロール内のノードを表します。

class CMFCPropertySheetCategoryInfo : public CObject

メンバー

パブリック コンストラクター

名前

説明

CMFCPropertySheetCategoryInfo::CMFCPropertySheetCategoryInfo

CMFCPropertySheetCategoryInfo オブジェクトを構築します。

CMFCPropertySheetCategoryInfo::~CMFCPropertySheetCategoryInfo

デストラクターです。

パブリック メソッド

名前

説明

CMFCPropertySheetCategoryInfo::GetThisClass

このクラス型に関連付けられた CRuntimeClass オブジェクトへのポインターを取得するために、フレームワークによって使用されます。

解説

このクラスは、MFC フレームワーク インフラストラクチャをサポートします。独自に作成したコードから直接使用するためのものではありません。

ツリー コントロールは、プロパティ シートおよびプロパティ ページのセットとして実装されます。ツリー コントロール内のノードは、カテゴリとも呼ばれ、CMFCPropertySheetCategoryInfo カテゴリ オブジェクトによって表されます。

CMFCPropertySheet::AddTreeCategory メソッドは、プロパティ シート カテゴリ オブジェクトへのポインターを返します。このポインターは、CMFCPropertySheet::AddTreeCategory メソッドおよび CMFCPropertySheet::AddPageToTree メソッドのその後の呼び出しで使用されます。

使用例

CMFCPropertySheet::AddTreeCategory メソッドを使用して CMFCPropertySheetCategoryInfo オブジェクトへのポインターを取得する方法を次の例に示します。この例は、「VisualStudioDemo サンプル:MFC Visual Studio アプリケーション」の一部です。

    // The second parameter is the zero based index of an icon that is displayed when 
    // the control property page is not selected.
    // The third parameter is the zero based index of an icon that is displayed when
    // the control property page is selected.
    CMFCPropertySheetCategoryInfo* pCat1 = AddTreeCategory(_T("Environment"), 0, 1);

継承階層

CObject

   CMFCPropertySheetCategoryInfo

必要条件

ヘッダー : afxpropertysheet.h

参照

参照

階層図

CMFCPropertySheet クラス

CMFCPropertySheet::AddTreeCategory

CMFCPropertySheet::AddPageToTree

その他の技術情報

MFC クラス

内部クラス