CEZSnakeDlgDemoDlg.h
上传用户:cqzhuye
上传日期:2007-01-01
资源大小:72k
文件大小:2k
- // CEZSnakeDlgDemoDlg.h : header file
- //
- #if !defined(AFX_CEZSNAKEDLGDEMODLG_H__71123C87_9D9A_11D1_9D77_9A8A25FCB11F__INCLUDED_)
- #define AFX_CEZSNAKEDLGDEMODLG_H__71123C87_9D9A_11D1_9D77_9A8A25FCB11F__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- /////////////////////////////////////////////////////////////////////////////
- // CCEZSnakeDlgDemoDlg dialog
- #include "EZSnakeCtrl.h"
- #include "ColourPicker.h"
- class CCEZSnakeDlgDemoDlg : public CDialog
- {
- // Construction
- public:
- void EnableControls();
- CCEZSnakeDlgDemoDlg(CWnd* pParent = NULL); // standard constructor
- // Dialog Data
- //{{AFX_DATA(CCEZSnakeDlgDemoDlg)
- enum { IDD = IDD_CEZSNAKEDLGDEMO_DIALOG };
- CButton m_wndReset;
- CButton m_wndStart;
- CButton m_wndOk;
- CEZSnakeCtrl m_wndSnake;
- CColourPicker m_wndClrStart;
- CColourPicker m_wndClrBk;
- CColourPicker m_wndClrEnd;
- int m_nMax;
- int m_nSize;
- int m_nStep;
- //}}AFX_DATA
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CCEZSnakeDlgDemoDlg)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- HICON m_hIcon;
- COLORREF m_clrBk,m_clrEnd,m_clrStart;
- // Generated message map functions
- //{{AFX_MSG(CCEZSnakeDlgDemoDlg)
- virtual BOOL OnInitDialog();
- afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
- afx_msg void OnPaint();
- afx_msg HCURSOR OnQueryDragIcon();
- afx_msg void OnStart();
- afx_msg void OnStop();
- afx_msg void OnReset();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- private:
- void DisableControls();
- BOOL m_bStop;
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_CEZSNAKEDLGDEMODLG_H__71123C87_9D9A_11D1_9D77_9A8A25FCB11F__INCLUDED_)