Source code of Windows XP (NT5)
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.

173 lines
6.9 KiB

  1. /* */
  2. /* Sxspad application */
  3. /* */
  4. /* Copyright (C) 1984-2000 Microsoft Inc. */
  5. /* */
  6. #include "sxspad.h"
  7. #define GRP WS_GROUP
  8. #define TAB WS_TABSTOP
  9. #define TABGRP WS_TABSTOP | WS_GROUP
  10. #define DLGMODAL WS_POPUP | WS_DLGFRAME
  11. /* Version Stamping */
  12. #include "sxspad.rcv"
  13. ID_APPICON ICON PRELOAD DISCARDABLE sxsapp.ico
  14. ID_ICON ICON PRELOAD DISCARDABLE sxspad.ico
  15. ID_MENUBAR MENU PRELOAD DISCARDABLE
  16. BEGIN
  17. POPUP "&File"
  18. BEGIN
  19. MENUITEM "&New\tCtrl+N", M_NEW
  20. MENUITEM "&Open...\tCtrl+O", M_OPEN
  21. MENUITEM "&Save\tCtrl+S", M_SAVE
  22. MENUITEM "Save &As...", M_SAVEAS
  23. MENUITEM SEPARATOR
  24. MENUITEM "Page Set&up...", M_PAGESETUP
  25. MENUITEM "&Print...\tCtrl+P", M_PRINT
  26. MENUITEM SEPARATOR
  27. MENUITEM "E&xit", M_EXIT
  28. END
  29. POPUP "&Edit"
  30. BEGIN
  31. MENUITEM "&Undo\tCtrl+Z", M_UNDO
  32. MENUITEM SEPARATOR
  33. MENUITEM "Cu&t\tCtrl+X", M_CUT , GRAYED
  34. MENUITEM "&Copy\tCtrl+C", M_COPY, GRAYED
  35. MENUITEM "&Paste\tCtrl+V", M_PASTE, GRAYED
  36. MENUITEM "De&lete\tDel", M_CLEAR, GRAYED
  37. MENUITEM SEPARATOR
  38. MENUITEM "&Find...\tCtrl+F", M_FIND
  39. MENUITEM "Find &Next\tF3", M_FINDNEXT
  40. MENUITEM "&Replace...\tCtrl+H", M_REPLACE
  41. /*
  42. The hotkey used for replace is CTRL-H in most of the editors, and hence though
  43. this key may conflict with backspace key in IMEs, this key is used here to be compatible
  44. with all the editors. Please contact ChrisW/RajeshM for more details.
  45. */
  46. MENUITEM "&Go To...\tCtrl+G", M_GOTO
  47. MENUITEM SEPARATOR
  48. MENUITEM "Select &All\tCtrl+A", M_SELECTALL
  49. MENUITEM "Time/&Date\tF5", M_DATETIME
  50. END
  51. POPUP "F&ormat"
  52. BEGIN
  53. MENUITEM "&Word Wrap" M_WW
  54. MENUITEM "&Font...", M_SETFONT
  55. END
  56. POPUP "&Help"
  57. BEGIN
  58. MENUITEM "&Help Topics", M_HELP
  59. MENUITEM SEPARATOR
  60. MENUITEM "&About Sxspad",M_ABOUT
  61. END
  62. END
  63. MainAcc ACCELERATORS PRELOAD DISCARDABLE
  64. BEGIN
  65. "^N", M_NEW
  66. "^O", M_OPEN
  67. "^S", M_SAVE
  68. "^P", M_PRINT
  69. VK_INSERT, M_COPY, VIRTKEY, CONTROL
  70. VK_F1, M_HELP, VIRTKEY
  71. VK_F3, M_FINDNEXT, VIRTKEY
  72. VK_F5, M_DATETIME, VIRTKEY
  73. "^G", M_GOTO
  74. "F", M_FIND , VIRTKEY, CONTROL, NOINVERT
  75. "H", M_REPLACE, VIRTKEY, CONTROL, NOINVERT
  76. VK_BACK, M_UNDO, VIRTKEY, ALT
  77. "^Z", M_UNDO
  78. "^X", M_CUT
  79. "^C", M_COPY
  80. "^V", M_PASTE
  81. "^A", M_SELECTALL
  82. END
  83. /* Allow exit using ^C, ^D or ^Z during Setup */
  84. SlipUpAcc ACCELERATORS PRELOAD DISCARDABLE
  85. BEGIN
  86. "^N", M_NEW
  87. "^O", M_OPEN
  88. "^S", M_SAVE
  89. "^P", M_PRINT
  90. VK_INSERT, M_COPY, VIRTKEY, CONTROL
  91. VK_F1, M_HELP, VIRTKEY
  92. VK_F3, M_FINDNEXT, VIRTKEY
  93. VK_F5, M_DATETIME, VIRTKEY
  94. "^G", M_GOTO
  95. "F", M_FIND, VIRTKEY, CONTROL, NOINVERT
  96. "H", M_REPLACE, VIRTKEY, CONTROL, NOINVERT
  97. VK_BACK, M_UNDO, VIRTKEY, ALT
  98. "^Z", M_UNDO
  99. "^X", M_CUT
  100. "^C", M_COPY
  101. "^V", M_PASTE
  102. "^A", M_SELECTALL
  103. VK_ESCAPE, M_EXIT, VIRTKEY
  104. 0x43, M_EXIT, VIRTKEY, CONTROL
  105. 0x44, M_EXIT, VIRTKEY, CONTROL
  106. 0x5A, M_EXIT, VIRTKEY, CONTROL
  107. END
  108. STRINGTABLE PRELOAD DISCARDABLE
  109. BEGIN
  110. IDS_MERGE1 "%%"
  111. IDS_DISKERROR "Cannot open the %% file.\n\nMake sure a disk is in the drive you specified."
  112. IDS_FNF "Cannot find the %% file.\n\nDo you want to create a new file?"
  113. IDS_SCBC "The text in the %% file has changed.\n\nDo you want to save the changes?"
  114. IDS_UNTITLED "Untitled"
  115. IDS_SXSPAD " - Sxspad"
  116. IDS_CFS "Cannot find ""%%"""
  117. /* The following is a generic out of memory message which can also be
  118. system modal so no /n can appear in it. */
  119. IDS_ERRSPACE "Not enough memory available to complete this operation. Quit one or more applications to increase available memory, and then try again."
  120. IDS_FTL "The %% file is too large for Sxspad.\n\nUse another editor to edit the file."
  121. IDS_NN "Sxspad"
  122. IDS_COMMDLGINIT "Failed to Initialize File Dialogs. Change the Filename and try again."
  123. IDS_PRINTDLGINIT "Failed to Initialize Print Dialogs. Make sure that your printer is connected properly and use Control Panel to verify that the printer is configured properly."
  124. IDS_CANTPRINT "Cannot print the %% file. Be sure that your printer is connected properly and use Control Panel to verify that the printer is configured properly."
  125. IDS_NVF "Not a valid file name."
  126. IDS_CREATEERR "Cannot create the %% file.\n\nMake sure that the path and filename are correct."
  127. IDS_NOWW "Cannot carry out the Word Wrap command because there is too much text in the file."
  128. IDS_HELPFILE "sxspad.hlp"
  129. IDS_HEADER "&f"
  130. IDS_FOOTER "Page &p"
  131. IDS_ACCESSDENY "%%\nYou do not have permission to open this file. See the owner of the file or an administrator to obtain permission."
  132. IDS_ANSITEXT "Manifest Documents (*.Manifest)" /* filter text for File/Open */
  133. IDS_ALLFILES "All Files " /* filter text for File/Open */
  134. IDS_OPENCAPTION "Open" /* title for file/open dialog */
  135. IDS_SAVECAPTION "Save As" /* title for file/save dialog */
  136. IDS_CANNOTQUIT "You cannot quit Windows because the Save As dialog\nbox in Sxspad is open. Switch to Sxspad, close this\ndialog box, and then try quitting Windows again."
  137. IDS_LOADDRVFAIL "Cannot access your printer.\nBe sure that your printer is connected properly and use Control Panel to verify that the printer is configured properly."
  138. IDS_ERRUNICODE "%%\nThis file contains characters in Unicode format which will be lost if you save this file as a text document. To keep the Unicode information, select the Unicode encoding in the Save As dialog box. Continue?
  139. "
  140. IDS_FONTTOOBIG "Page too small to print one line.\nTry printing using smaller font."
  141. IDS_COMMDLGERR "Common Dialog error (0x%04x)"
  142. IDS_LINEERROR "Sxspad - Goto Line"
  143. IDS_LINETOOLARGE "Line number out of range"
  144. IDS_FT_ANSI "ANSI"
  145. IDS_FT_UNICODE "Unicode"
  146. IDS_FT_UNICODEBE "Unicode big endian"
  147. IDS_FT_UTF8 "UTF-8"
  148. IDS_CURRENT_PAGE "Page %d" /* don't change %d; used for printf formatting */
  149. END
  150. /* Include other dialogs. */
  151. rcinclude sxspad.dlg
  152. #include <ntverp.h>
  153. #include "common.ver"