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.

165 lines
6.4 KiB

  1. #include "windows.h"
  2. #include "freecons.h"
  3. ID_ICON_MAIN ICON freecell.ico
  4. DownArrow CURSOR DOWN.CUR
  5. KingBitmap BITMAP KING.BMP
  6. KingLeft BITMAP KINGL.BMP
  7. KingSmile BITMAP KINGS.BMP
  8. FreeMenu MENU
  9. BEGIN
  10. POPUP "&Game"
  11. BEGIN
  12. MENUITEM "&New Game\tF2", IDM_NEWGAME
  13. MENUITEM "&Select Game\tF3", IDM_SELECT
  14. MENUITEM "&Restart Game", IDM_RESTART, GRAYED
  15. MENUITEM SEPARATOR
  16. MENUITEM "S&tatistics...\tF4", IDM_STATS
  17. MENUITEM "&Options...\tF5", IDM_OPTIONS
  18. MENUITEM SEPARATOR
  19. MENUITEM "&Undo\tF10", IDM_UNDO, GRAYED
  20. MENUITEM SEPARATOR
  21. MENUITEM "E&xit", IDM_EXIT
  22. END
  23. POPUP "&Help"
  24. BEGIN
  25. MENUITEM "&Contents\t F1", IDM_HELP
  26. MENUITEM "&Search for Help on...", IDM_HOWTOPLAY
  27. MENUITEM "&How to Use Help", IDM_HELPONHELP
  28. MENUITEM SEPARATOR
  29. MENUITEM "&About FreeCell...", IDM_ABOUT
  30. END
  31. END
  32. FreeMenu ACCELERATORS
  33. BEGIN
  34. VK_F1, IDM_HELP, VIRTKEY
  35. VK_F1, IDM_HELP, VIRTKEY, SHIFT
  36. VK_F2, IDM_NEWGAME, VIRTKEY
  37. VK_F3, IDM_SELECT, VIRTKEY
  38. VK_F4, IDM_STATS, VIRTKEY
  39. VK_F5, IDM_OPTIONS, VIRTKEY
  40. VK_F10, IDM_UNDO, VIRTKEY
  41. VK_F10, IDM_CHEAT, VIRTKEY, CONTROL, SHIFT
  42. END
  43. MoveCol DIALOG LOADONCALL MOVEABLE DISCARDABLE 40, 40, 150, 80
  44. CAPTION "Move to Empty Column..."
  45. STYLE DS_MODALFRAME | WS_CAPTION
  46. FONT 8, "MS Shell Dlg"
  47. BEGIN
  48. CONTROL "Move &column", IDC_MOVECOL, "button", BS_DEFPUSHBUTTON | WS_TABSTOP | WS_CHILD, 30, 15, 90, 14
  49. CONTROL "Move &single card", IDC_SINGLE, "button", BS_PUSHBUTTON | WS_TABSTOP | WS_CHILD, 30, 35, 90, 14
  50. CONTROL "Cancel", IDCANCEL, "button", BS_PUSHBUTTON | WS_TABSTOP | WS_CHILD, 55, 57, 40, 14
  51. END
  52. GameNum DIALOG LOADONCALL MOVEABLE DISCARDABLE 40, 40, 120, 75
  53. CAPTION "Game Number"
  54. STYLE DS_MODALFRAME | WS_CAPTION | DS_CONTEXTHELP | WS_SYSMENU
  55. FONT 8, "MS Shell Dlg"
  56. BEGIN
  57. CONTROL "Select a game number", -1, "static", SS_CENTER | WS_CHILD, 0, 7, 121, 8
  58. CONTROL "from 1 to 1000000", -1, "static", SS_CENTER | WS_CHILD, 0, 17, 121, 8
  59. CONTROL "", IDC_GAMENUM, "edit", ES_LEFT | WS_BORDER | WS_TABSTOP | WS_CHILD, 45, 32, 40, 12
  60. CONTROL "OK", IDOK, "button", BS_DEFPUSHBUTTON | WS_TABSTOP | WS_CHILD, 40, 54, 40, 14
  61. END
  62. YouLose DIALOG LOADONCALL MOVEABLE DISCARDABLE 60, 60, 135, 90
  63. CAPTION "Game Over"
  64. STYLE DS_MODALFRAME | WS_CAPTION
  65. FONT 8, "MS Shell Dlg"
  66. BEGIN
  67. CONTROL "Sorry, you lose.\
  68. There are no more legal moves.\n\
  69. Do you want to play again?",
  70. -1, "static", SS_LEFT | WS_CHILD, 15, 6, 120, 40
  71. CONTROL "&Yes", IDYES, "button", BS_DEFPUSHBUTTON | WS_TABSTOP | WS_CHILD, 15, 70, 40, 14
  72. CONTROL "&No", IDNO, "button", BS_PUSHBUTTON | WS_TABSTOP | WS_CHILD, 80, 70, 40, 14
  73. CONTROL "&Same game", IDC_YLSAME, "button", BS_AUTOCHECKBOX | WS_TABSTOP | WS_CHILD, 15, 55, 62, 12
  74. END
  75. YouWin DIALOG LOADONCALL MOVEABLE DISCARDABLE 172, 85, 135, 80
  76. CAPTION "Game Over"
  77. STYLE WS_BORDER | WS_CAPTION | WS_DLGFRAME | DS_MODALFRAME | WS_POPUP
  78. FONT 8, "MS Shell Dlg"
  79. BEGIN
  80. CONTROL "Congratulations, you win!\n
  81. Do you want to play again?",
  82. -1, "static", SS_CENTER | WS_CHILD, 15, 8, 105, 31
  83. CONTROL "&Yes", IDYES, "button", BS_DEFPUSHBUTTON | WS_TABSTOP | WS_CHILD, 15, 58, 40, 14
  84. CONTROL "&No", IDNO, "button", BS_PUSHBUTTON | WS_TABSTOP | WS_CHILD, 80, 58, 40, 14
  85. CONTROL "&Select game", IDC_YWSELECT, "button", BS_AUTOCHECKBOX | WS_TABSTOP | WS_CHILD, 15, 43, 63, 12
  86. END
  87. Stats DIALOG LOADONCALL MOVEABLE DISCARDABLE 84, 47, 150, 135
  88. CAPTION "FreeCell Statistics"
  89. STYLE DS_MODALFRAME | WS_CAPTION | DS_CONTEXTHELP | WS_SYSMENU
  90. FONT 8, "MS Shell Dlg"
  91. BEGIN
  92. CONTROL "", IDC_STEXT1, "static", SS_LEFT | WS_CHILD, 11, 10, 130, 30
  93. CONTROL "", IDC_STEXT2, "static", SS_LEFT | WS_CHILD, 11, 42, 130, 30
  94. CONTROL "", IDC_STEXT3, "static", SS_LEFT | WS_CHILD, 11, 74, 130, 40
  95. CONTROL "OK", IDOK, "button", BS_DEFPUSHBUTTON | WS_TABSTOP | WS_CHILD, 20, 115, 40, 14
  96. CONTROL "&Clear", IDC_CLEAR, "button", BS_PUSHBUTTON | WS_TABSTOP | WS_CHILD, 90, 115, 40, 14
  97. END
  98. DLG_OPTIONS DIALOG DISCARDABLE 58, 68, 203, 63
  99. CAPTION "FreeCell Options"
  100. STYLE DS_MODALFRAME | WS_CAPTION | DS_3DLOOK | DS_CONTEXTHELP | WS_SYSMENU
  101. FONT 8, "MS Shell Dlg"
  102. BEGIN
  103. DEFPUSHBUTTON "OK",IDOK,148,9,50,14
  104. PUSHBUTTON "Cancel",IDCANCEL,148,26,50,14
  105. CONTROL "Display &messages on illegal moves",IDC_MESSAGES,"Button",
  106. BS_AUTOCHECKBOX | WS_TABSTOP,6,9,136,10
  107. CONTROL "&Quick play (no animation)",IDC_QUICK,"Button",
  108. BS_AUTOCHECKBOX | WS_TABSTOP,6,26,136,10
  109. CONTROL "&Double click moves card to free cell",IDC_DBLCLICK,"Button",
  110. BS_AUTOCHECKBOX | WS_TABSTOP,6,43,136,10
  111. END
  112. STRINGTABLE
  113. BEGIN
  114. IDS_APPNAME, "FreeCell"
  115. IDS_APPNAME2, "FreeCell Game #%d"
  116. IDS_MEMORY, "Out of memory. Close other applications and try again."
  117. IDS_RESIGN, "Do you want to resign this game?"
  118. IDS_1WIN, "1 win"
  119. IDS_1LOSS, "1 loss"
  120. IDS_WINS, "%u wins"
  121. IDS_LOSSES, "%u losses"
  122. IDS_STREAK, "streak"
  123. IDS_STYPE, "stype"
  124. IDS_ILLEGAL, "That move is not allowed."
  125. IDS_TOOFEWFREE, "That move requires moving %u cards.\
  126. You only have enough free space to move %u."
  127. IDS_CARDSLEFT, "Cards Left: %u"
  128. IDS_FULLNAME, "FreeCell"
  129. IDS_CREDITS, "by Jim Horne"
  130. /* keywords for help */
  131. IDS_HELP1 "How to Play"
  132. IDS_HELP2 "Commands"
  133. /* new strings for NT */
  134. IDS_RU_SURE, "Are you sure you want to delete all statistics?"
  135. /* stat string */
  136. IDS_STATS1 "This session\t\t\t%u%%\n\twon:\t\t%u \n\tlost:\t\t%u%\n\n"
  137. IDS_STATS2 "Total\t\t\t\t%u%%\n\twon:\t\t%u \n\tlost:\t\t%u%\n\n"
  138. IDS_STATS3 "Streaks\n\twins:\t\t%u \n\tlosses:\t\t%u% \n\tcurrent:\t\t%s"
  139. END
  140. #include <ntverp.h>
  141. #define VER_FILETYPE VFT_APP
  142. #define VER_FILESUBTYPE VFT2_UNKNOWN
  143. #define VER_FILEDESCRIPTION_STR "Entertainment Pack FreeCell Game"
  144. #define VER_INTERNALNAME_STR "freecell\0"
  145. #include "common.ver"