home *** CD-ROM | disk | FTP | other *** search
- // buttoctl.h : Declaration of the CButtonCtrl OLE control class.
-
- /////////////////////////////////////////////////////////////////////////////
- // CButtonCtrl : See buttoctl.cpp for implementation.
-
- class CButtonCtrl : public COleControl
- {
- DECLARE_DYNCREATE(CButtonCtrl)
-
- // Constructor
- public:
- CButtonCtrl();
-
- // Overrides
-
- // Drawing function
- virtual void OnDraw(
- CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid);
-
- // Persistence
- virtual void DoPropExchange(CPropExchange* pPX);
-
- // Reset control state
- virtual void OnResetState();
-
- // Implementation
- protected:
- ~CButtonCtrl();
-
- DECLARE_OLECREATE_EX(CButtonCtrl) // Class factory and guid
- DECLARE_OLETYPELIB(CButtonCtrl) // GetTypeInfo
- DECLARE_PROPPAGEIDS(CButtonCtrl) // Property page IDs
- DECLARE_OLECTLTYPE(CButtonCtrl) // Type name and misc status
-
- // Subclassed control support
- BOOL PreCreateWindow(CREATESTRUCT& cs);
- WNDPROC* GetSuperWndProcAddr(void);
- LRESULT OnOcmCommand(WPARAM wParam, LPARAM lParam);
-
- // Message maps
- //{{AFX_MSG(CButtonCtrl)
- // NOTE - ClassWizard will add and remove member functions here.
- // DO NOT EDIT what you see in these blocks of generated code !
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
-
- // Dispatch maps
- //{{AFX_DISPATCH(CButtonCtrl)
- //}}AFX_DISPATCH
- DECLARE_DISPATCH_MAP()
-
- afx_msg void AboutBox();
-
- // Event maps
- //{{AFX_EVENT(CButtonCtrl)
- //}}AFX_EVENT
- DECLARE_EVENT_MAP()
-
- // Dispatch and event IDs
- public:
- enum {
- //{{AFX_DISP_ID(CButtonCtrl)
- //}}AFX_DISP_ID
- };
- };
-