home *** CD-ROM | disk | FTP | other *** search
/ Large Pack of OldSkool DOS MOD Trackers / beaversweeper_v101.zip / src / AEWindow.h < prev    next >
C/C++ Source or Header  |  2003-01-06  |  2KB  |  74 lines

  1. #if !defined(AFX_AEWINDOW_H__72098206_11A2_4D0C_B1B1_FAFED8ED22CD__INCLUDED_)
  2. #define AFX_AEWINDOW_H__72098206_11A2_4D0C_B1B1_FAFED8ED22CD__INCLUDED_
  3.  
  4. #if _MSC_VER > 1000
  5. #pragma once
  6. #endif // _MSC_VER > 1000
  7. // AEWindow.h : header file
  8. //
  9.  
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CAEWindow window
  12.  
  13. class isInstrument;
  14.  
  15. class CAEWindow : public CWnd
  16. {
  17. // Construction
  18. public:
  19.     CAEWindow();
  20.  
  21. // Attributes
  22. public:
  23.  
  24. // Operations
  25. public:
  26.  
  27. // Overrides
  28.     // ClassWizard generated virtual function overrides
  29.     //{{AFX_VIRTUAL(CAEWindow)
  30.     public:
  31.     virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
  32.     //}}AFX_VIRTUAL
  33.  
  34. // Implementation
  35. public:
  36.     virtual ~CAEWindow();
  37.  
  38.     isInstrument *m_instrument;
  39.  
  40.     // Generated message map functions
  41. protected:
  42.  
  43.     int m_posx, m_posy, m_digitno, m_rows, m_cols;    
  44.     RECT m_field; 
  45.  
  46.     BOOL m_isedit;
  47.     _TCHAR m_editstr[10];
  48.  
  49.     void getItemRect( int x, int y, RECT *rect );
  50.     void getItemText( int x, int y, _TCHAR *str );
  51.     void enterEdit(void);
  52.     void enterLeave(void);
  53.     
  54.  
  55.  
  56.     //{{AFX_MSG(CAEWindow)
  57.     afx_msg void OnPaint();
  58.     afx_msg void OnSetFocus(CWnd* pOldWnd);
  59.     afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
  60.     afx_msg void OnSysKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
  61.     afx_msg UINT OnGetDlgCode();
  62.     afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
  63.     afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  64.     //}}AFX_MSG
  65.     DECLARE_MESSAGE_MAP()
  66. };
  67.  
  68. /////////////////////////////////////////////////////////////////////////////
  69.  
  70. //{{AFX_INSERT_LOCATION}}
  71. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  72.  
  73. #endif // !defined(AFX_AEWINDOW_H__72098206_11A2_4D0C_B1B1_FAFED8ED22CD__INCLUDED_)
  74.