OptionTreeItemStatic.h
上传用户:kairuinn
上传日期:2009-02-07
资源大小:2922k
文件大小:2k
- // COptionTree
- //
- // License
- // -------
- // This code is provided "as is" with no expressed or implied warranty.
- //
- // You may use this code in a commercial product with or without acknowledgement.
- // However you may not sell this code or any modification of this code, this includes
- // commercial libraries and anything else for profit.
- //
- // I would appreciate a notification of any bugs or bug fixes to help the control grow.
- //
- // History:
- // --------
- // See License.txt for full history information.
- //
- //
- // Copyright (c) 1999-2002
- // ComputerSmarts.net
- // mattrmiller@computersmarts.net
- #ifndef OT_ITEMSTATIC
- #define OT_ITEMSTATIC
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // Added Headers
- //#include "CommonRes.h"
- #include "OptionTreeDef.h"
- #include "OptionTreeItem.h"
- // Classes
- class COptionTree;
- class COptionTreeItemStatic : public COptionTreeItem
- {
- public:
- BOOL CreateStaticItem(DWORD dwOptions);
- BOOL GetOption(DWORD dwOption);
- void SetOption(DWORD dwOption, BOOL bSet);
- virtual void OnMove();
- virtual void OnRefresh();
- virtual void OnCommit();
- virtual void OnActivate();
- virtual void CleanDestroyWindow();
- virtual void OnDeSelect();
- virtual void OnSelect();
- virtual void DrawAttribute(CDC *pDC, const RECT &rcRect);
- void SetStaticText(CString strStaticText);
- CString GetStaticText();
- COptionTreeItemStatic();
- virtual ~COptionTreeItemStatic();
- protected:
- CString m_strStaticText;
- DWORD m_dwOptions;
- };
- #endif // !OT_ITEMSTATIC