19 #if !defined(AFX_PROPT_H__386AA426_6FB7_4B4B_9563_C4CC045BB0C9__INCLUDED_)
20 #define AFX_PROPT_H__386AA426_6FB7_4B4B_9563_C4CC045BB0C9__INCLUDED_
24 #endif // _MSC_VER > 1000
75 #define PTS_NOTIFY 0x00000001
78 #define HTPROPFIRST 50
80 #define HTLABEL (HTPROPFIRST + 0)
81 #define HTCOLUMN (HTPROPFIRST + 1)
82 #define HTEXPAND (HTPROPFIRST + 2)
83 #define HTATTRIBUTE (HTPROPFIRST + 3)
84 #define HTCHECKBOX (HTPROPFIRST + 4)
85 #define HTBUTTON (HTPROPFIRST + 5)
95 #define PTN_FIRST (0U-1100U)
97 #define PTN_INSERTITEM (PTN_FIRST-1)
98 #define PTN_DELETEITEM (PTN_FIRST-2)
99 #define PTN_DELETEALLITEMS (PTN_FIRST-3)
100 #define PTN_ITEMCHANGED (PTN_FIRST-5)
101 #define PTN_ITEMBUTTONCLICK (PTN_FIRST-6)
102 #define PTN_SELCHANGE (PTN_FIRST-7)
103 #define PTN_ITEMEXPANDING (PTN_FIRST-8)
104 #define PTN_COLUMNCLICK (PTN_FIRST-9)
105 #define PTN_PROPCLICK (PTN_FIRST-10)
106 #define PTN_CHECKCLICK (PTN_FIRST-12)
118 BOOL Create(
DWORD dwStyle,
const RECT& rect, CWnd* pParentWnd,
UINT nID);
122 static CFont* GetNormalFont();
123 static CFont* GetBoldFont();
141 void DeleteAllItems();
147 void SetColumn(
LONG nColumn);
153 void ShowInfoText(
BOOL bShow =
TRUE);
215 void ClearVisibleList();
217 void SetOriginOffset(
LONG nOffset);
219 void UpdateMoveAllItems();
223 void DisableInput(
BOOL bDisable =
TRUE);
224 BOOL IsDisableInput();
226 BOOL IsSingleSelection();
229 CWnd* GetCtrlParent();
231 const POINT& GetOrigin();
251 void ResizeChildWindows(
int cx,
int cy);
254 void InitGlobalResources();
257 void FreeGlobalResources();
277 afx_msg
int OnCreate(LPCREATESTRUCT lpCreateStruct);
278 afx_msg
void OnSize(
UINT nType,
int cx,
int cy);
279 afx_msg
void OnEnable(
BOOL bEnable);
280 afx_msg
void OnSysColorChange();
282 DECLARE_MESSAGE_MAP()
290 #endif // !defined(AFX_PROPT_H__386AA426_6FB7_4B4B_9563_C4CC045BB0C9__INCLUDED_)
struct _NMPROPTREE NMPROPTREE
CPropTreeItem * m_pVisbleList
CONST PIXELFORMATDESCRIPTOR UINT
static CFont * s_pBoldFont
static UINT s_nInstanceCount
struct _NMPROPTREE * LPNMPROPTREE
typedef BOOL(CALLBACK *ENUMPROPITEMPROC)(CPropTree *
static CPropTreeItem * s_pFound
struct _NMPROPTREE * PNMPROPTREE
static CFont * s_pNormalFont
void InitPropTree(HINSTANCE hInstance)