|
#if !defined(AFX_EZBUTTONPANEL_H__B6B67662_F6E1_42F2_BAD6_9D2335C6FEEB__INCLUDED_)
#define AFX_EZBUTTONPANEL_H__B6B67662_F6E1_42F2_BAD6_9D2335C6FEEB__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// EZButtonPanel.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CEZButtonPanel window
#include <afxTempl.h>
class CEZPanelButton;
class CEZButtonPanel : public CWnd
{
// Construction
public:
CEZButtonPanel();
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CEZButtonPanel)
public:
virtual BOOL Create(const RECT& rect, CWnd* pParentWnd);
protected:
virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
//}}AFX_VIRTUAL
// Implementation
public:
virtual void DeleteAllButtons();
virtual void RemoveButton(UINT nCommandID);
virtual int AddButton(UINT nCommandID,CString strText);
virtual ~CEZButtonPanel();
// Generated message map functions
protected:
//{{AFX_MSG(CEZButtonPanel)
afx_msg void OnPaint();
afx_msg void OnSize(UINT nType, int cx, int cy);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
protected:
virtual BOOL IsButtonEnabled(int iButton);
virtual void SetButtonText(UINT nCommandID,CString strText);
virtual CWnd* GetButton(UINT nCommandID);
virtual void EnableButton(int nCommandID,BOOL bEnable);
virtual void CalculateNextButtonRect();
static CString sm_strClassName;
CTypedPtrList<CPtrList,CEZPanelButton*> m_listButtons;
CRect m_rcFree;
CSize m_sizeButton;
friend class CEZOptionsDlg;
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_EZBUTTONPANEL_H__B6B67662_F6E1_42F2_BAD6_9D2335C6FEEB__INCLUDED_)
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.