StarFieldDlg.h
上传用户:kangjialed
上传日期:2021-05-31
资源大小:23k
文件大小:2k
- // StarFieldDlg.h : header file
- //
- #if !defined(AFX_STARFIELDDLG_H__0D0578CF_3F93_4846_8B3E_942177497A94__INCLUDED_)
- #define AFX_STARFIELDDLG_H__0D0578CF_3F93_4846_8B3E_942177497A94__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- /////////////////////////////////////////////////////////////////////////////
- // CStarFieldDlg dialog
- #define StarCount 300
- struct CStar
- {
- int x;
- int y;
- int speed;
- };
- class CStarFieldDlg : public CDialog
- {
- // Construction
- public:
- CStarFieldDlg(CWnd* pParent = NULL); // standard constructor
- // Dialog Data
- //{{AFX_DATA(CStarFieldDlg)
- enum { IDD = IDD_STARFIELD_DIALOG };
- // NOTE: the ClassWizard will add data members here
- //}}AFX_DATA
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CStarFieldDlg)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- HICON m_hIcon;
- // Generated message map functions
- //{{AFX_MSG(CStarFieldDlg)
- virtual BOOL OnInitDialog();
- afx_msg void OnPaint();
- afx_msg HCURSOR OnQueryDragIcon();
- afx_msg void OnTimer(UINT nIDEvent);
- afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- private:
- void Point(CDC *dc, int x, int y, int Size);
- void Cls(CDC *dc);
- CStar Star[StarCount];
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_STARFIELDDLG_H__0D0578CF_3F93_4846_8B3E_942177497A94__INCLUDED_)