Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

95 lines
2.4 KiB

  1. /***************************************************************************/
  2. /** Microsoft Windows **/
  3. /** Copyright(c) Microsoft Corp., 1991, 1992 **/
  4. /***************************************************************************/
  5. /****************************************************************************
  6. dlg.h
  7. Aug 92, JimH
  8. Dialog classes are declared here.
  9. CScoreDlg shows current score sheet
  10. CQuoteDlg quote dialog
  11. CWelcomeDlg welcome to hearts, do you want to be GameMeister?
  12. COptionsDlg set options
  13. ****************************************************************************/
  14. #ifndef DLG_INC
  15. #define DLG_INC
  16. const int MAXHANDS = 12; // can display this many in score sheet
  17. const int MAXPLAYER = 4;
  18. const int UNKNOWN = -1; // third BOOL value
  19. class CScoreDlg : public CModalDialog
  20. {
  21. public:
  22. CScoreDlg(CWnd *pParent);
  23. CScoreDlg(CWnd *pParent, int s[MAXPLAYER], int id);
  24. BOOL IsGameOver() { return bGameOver; }
  25. void ResetScore() { nHandsPlayed = 0; bGameOver = FALSE; }
  26. void SetText();
  27. private:
  28. CStatic *text[MAXPLAYER];
  29. int m_myid;
  30. static int score[MAXPLAYER][MAXHANDS+1];
  31. static int nHandsPlayed;
  32. static BOOL bGameOver;
  33. virtual BOOL OnInitDialog();
  34. afx_msg void OnPaint();
  35. DECLARE_MESSAGE_MAP()
  36. };
  37. class CQuoteDlg : public CModalDialog
  38. {
  39. public:
  40. CQuoteDlg(CWnd *pParent);
  41. afx_msg void OnPaint();
  42. DECLARE_MESSAGE_MAP()
  43. };
  44. class CWelcomeDlg : public CModalDialog
  45. {
  46. public:
  47. CWelcomeDlg(CWnd *pParent);
  48. virtual BOOL OnInitDialog();
  49. virtual void OnOK();
  50. CString GetMyName() { return m_myname; }
  51. BOOL IsGameMeister() { return m_bGameMeister; }
  52. afx_msg void OnHelp();
  53. private:
  54. CString m_myname;
  55. BOOL m_bGameMeister;
  56. DECLARE_MESSAGE_MAP()
  57. };
  58. class COptionsDlg : public CModalDialog
  59. {
  60. public:
  61. COptionsDlg(CWnd *pParent);
  62. virtual BOOL OnInitDialog();
  63. virtual void OnOK();
  64. private:
  65. BOOL IsAutoStart(BOOL bToggle = FALSE);
  66. BOOL m_bInitialState;
  67. BYTE m_buffer[200];
  68. };
  69. #endif