CMFCPropertySheetCategoryInfo クラス
更新 : 2007 年 11 月
ツリー コントロール内のノードを表します。
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);
継承階層
必要条件
ヘッダー : afxpropertysheet.h
参照
概念
参照
CMFCPropertySheet::AddTreeCategory
CMFCPropertySheet::AddPageToTree