home *** CD-ROM | disk | FTP | other *** search
/ The Best of Windows 95.com 1996 September / WIN95_09963.iso / strategy / hangman.zip / Hangman32Dlg.h < prev    next >
C/C++ Source or Header  |  1996-01-16  |  3KB  |  135 lines

  1. // Hangman32Dlg.h : header file
  2. //
  3.  
  4. #ifndef CHANGMAN32DLG_H
  5. #define CHANGMAN32DLG_H
  6.  
  7. #include "Hangman.h"
  8. #include "PictureButton.h"
  9.  
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CHangman32Dlg dialog
  12. class CHangman32Dlg : public CDialog
  13. {
  14. // Construction
  15. public:
  16.     void OnOK();
  17.     CHangman32Dlg(CWnd* pParent = NULL);    // standard constructor
  18.  
  19. // Dialog Data
  20.     //{{AFX_DATA(CHangman32Dlg)
  21.     enum { IDD = IDD_HANGMAN32_DIALOG };
  22.     CPictureButton    m_cntrlPic;
  23.     CButton    m_btn26Z;
  24.     CButton    m_btn25Y;
  25.     CButton    m_btn24X;
  26.     CButton    m_btn23W;
  27.     CButton    m_btn22V;
  28.     CButton    m_btn21U;
  29.     CButton    m_btn20T;
  30.     CButton    m_btn19S;
  31.     CButton    m_btn18R;
  32.     CButton    m_btn17Q;
  33.     CButton    m_btn16P;
  34.     CButton    m_btn15O;
  35.     CButton    m_btn14N;
  36.     CButton    m_btn13M;
  37.     CButton    m_btn12L;
  38.     CButton    m_btn11K;
  39.     CButton    m_btn10J;
  40.     CButton    m_btn9I;
  41.     CButton    m_btn8H;
  42.     CButton    m_btn7G;
  43.     CButton    m_btn6F;
  44.     CButton    m_btn5E;
  45.     CButton    m_btn4D;
  46.     CButton    m_btn3C;
  47.     CButton    m_btn2B;
  48.     CButton    m_btn1A;
  49.     //}}AFX_DATA
  50.  
  51.     // ClassWizard generated virtual function overrides
  52.     //{{AFX_VIRTUAL(CHangman32Dlg)
  53.     protected:
  54.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  55.     //}}AFX_VIRTUAL
  56.  
  57. // Implementation
  58. protected:
  59.     void DrawPic();
  60.     void ProcessButtonPress(char Letter);
  61.     void RefreshScoreDisplay();
  62.     void DoWinner();
  63.     void DoLoser();
  64.     void ResetButtons();
  65.     HICON m_hIcon;
  66.     CHangman m_Hangman;
  67.  
  68.     // Generated message map functions
  69.     //{{AFX_MSG(CHangman32Dlg)
  70.     virtual BOOL OnInitDialog();
  71.     afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  72.     afx_msg void OnDestroy();
  73.     afx_msg void OnPaint();
  74.     afx_msg HCURSOR OnQueryDragIcon();
  75.     afx_msg void OnButton1_A();
  76.     afx_msg void OnButton2_B();
  77.     afx_msg void OnButton3_C();
  78.     afx_msg void OnButton4_D();
  79.     afx_msg void OnButton5_E();
  80.     afx_msg void OnButton6_F();
  81.     afx_msg void OnButton7_G();
  82.     afx_msg void OnButton8_H();
  83.     afx_msg void OnButton9_I();
  84.     afx_msg void OnButton10_J();
  85.     afx_msg void OnButton11_K();
  86.     afx_msg void OnButton12_L();
  87.     afx_msg void OnButton13_M();
  88.     afx_msg void OnButton14_N();
  89.     afx_msg void OnButton15_O();
  90.     afx_msg void OnButton16_P();
  91.     afx_msg void OnButton17_Q();
  92.     afx_msg void OnButton18_R();
  93.     afx_msg void OnButton19_S();
  94.     afx_msg void OnButton20_T();
  95.     afx_msg void OnButton21_U();
  96.     afx_msg void OnButton22_V();
  97.     afx_msg void OnButton23_W();
  98.     afx_msg void OnButton24_X();
  99.     afx_msg void OnButton25_Y();
  100.     afx_msg void OnButton26_Z();
  101.     afx_msg void OnGameHint();
  102.     afx_msg void OnGameNew();
  103.     afx_msg void OnHelpAbouthangman32();
  104.     //}}AFX_MSG
  105.     DECLARE_MESSAGE_MAP()
  106. };
  107.  
  108.  
  109. /////////////////////////////////////////////////////////////////////////////
  110. // CAboutDlg dialog used for App About
  111.  
  112. class CAboutDlg : public CDialog
  113. {
  114. public:
  115.     CAboutDlg();
  116. // Dialog Data
  117.     //{{AFX_DATA(CAboutDlg)
  118.     enum { IDD = IDD_ABOUTBOX };
  119.     //}}AFX_DATA
  120.  
  121.     // ClassWizard generated virtual function overrides
  122.     //{{AFX_VIRTUAL(CAboutDlg)
  123.     protected:
  124.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  125.     //}}AFX_VIRTUAL
  126.  
  127. // Implementation
  128. protected:
  129.     //{{AFX_MSG(CAboutDlg)
  130.     //}}AFX_MSG
  131.     DECLARE_MESSAGE_MAP()
  132. };
  133.  
  134. #endif
  135.