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.

301 lines
13 KiB

  1. #include <windows.h>
  2. #include "clpbkrc.h"
  3. #include "clpbkdlg.h"
  4. #include "clipdsp.h"
  5. #include "clipbook.rcv"
  6. IDBITMAP BITMAP buttons.bmp
  7. IDSTATUS BITMAP status.bmp
  8. IBM_UPARROW BITMAP arrup.bmp
  9. IBM_DNARROW BITMAP arrdn.bmp
  10. IBM_UPARROWD BITMAP arrupd.bmp
  11. IBM_DNARROWD BITMAP arrdnd.bmp
  12. IDFRAMEICON ICON clipbk.ico
  13. IDI_CLIPBRD ICON clipbrd.ico
  14. IDI_CLIPBOOK ICON scrpbk.ico
  15. IDI_REMOTE ICON scrpbk2.ico
  16. IDLOCKICON ICON locked.ico
  17. IDSHAREICON ICON shared.ico
  18. IDC_CLIPBOOK CURSOR clipbook.cur
  19. IDC_CLIPBRD CURSOR clipbrd.cur
  20. IDC_REMOTE CURSOR scrpbk2.cur
  21. IDACCELERATORS ACCELERATORS
  22. BEGIN
  23. VK_F5, IDM_REFRESH, VIRTKEY
  24. VK_F1, IDM_CONTENTS, VIRTKEY
  25. VK_F5, IDM_CASCADE, VIRTKEY, SHIFT
  26. VK_F4, IDM_TILEVERT, VIRTKEY, SHIFT
  27. "V", IDM_KEEP, VIRTKEY, CONTROL
  28. VK_INSERT, IDM_KEEP, VIRTKEY, SHIFT
  29. "C", IDM_COPY, VIRTKEY, CONTROL
  30. VK_INSERT, IDM_COPY, VIRTKEY, CONTROL
  31. "G", IDM_PASTE_PAGE, VIRTKEY, CONTROL
  32. VK_DELETE, IDM_DELETE, VIRTKEY
  33. VK_RETURN, IDM_PAGEVIEW, VIRTKEY
  34. VK_PRIOR, ID_PAGEUP, VIRTKEY, CONTROL
  35. VK_NEXT, ID_PAGEDOWN, VIRTKEY, CONTROL
  36. END
  37. IDCVMENU MENU
  38. BEGIN
  39. POPUP "&File"
  40. BEGIN
  41. MENUITEM "&Open...", IDM_OPEN
  42. MENUITEM "Save &As...", IDM_SAVEAS
  43. MENUITEM SEPARATOR
  44. MENUITEM "&Share...", IDM_SHARE
  45. MENUITEM "S&top Sharing", IDM_UNSHARE
  46. #if 0
  47. MENUITEM "&Properties...", IDM_PROPERTIES
  48. #endif
  49. MENUITEM SEPARATOR
  50. MENUITEM "&Connect...", IDM_CONNECT
  51. MENUITEM "&Disconnect", IDM_DISCONNECT
  52. MENUITEM SEPARATOR
  53. MENUITEM "E&xit", IDM_EXIT
  54. END
  55. POPUP "&Edit"
  56. BEGIN
  57. #if 0
  58. MENUITEM "&Undo\tCtrl+Z", IDM_UNDO
  59. MENUITEM SEPARATOR
  60. #endif
  61. MENUITEM "&Copy\tCtrl+C", IDM_COPY
  62. MENUITEM "&Paste...\tCtrl+V", IDM_KEEP
  63. MENUITEM "Paste to Pa&ge\tCtrl+G", IDM_PASTE_PAGE
  64. MENUITEM "&Delete\tDel", IDM_DELETE
  65. END
  66. popup "&Security"
  67. begin
  68. menuitem "&Permissions...", IDM_PERMISSIONS
  69. menuitem "&Auditing...", IDM_AUDITING
  70. menuitem "&Owner...", IDM_OWNER
  71. end
  72. POPUP "&View"
  73. BEGIN
  74. MENUITEM "T&oolbar", IDM_TOOLBAR
  75. MENUITEM "&Status Bar", IDM_STATUSBAR
  76. MENUITEM SEPARATOR
  77. MENUITEM "Table of &Contents", IDM_LISTVIEW
  78. MENUITEM "Thumb&nails", IDM_PREVIEWS
  79. MENUITEM "Full Pa&ge", IDM_PAGEVIEW
  80. END
  81. POPUP "&Window"
  82. BEGIN
  83. MENUITEM "&Cascade\tShift+F5", IDM_CASCADE
  84. MENUITEM "Tile &Horizontally", IDM_TILEHORZ
  85. MENUITEM "&Tile Vertically\tShift+F4", IDM_TILEVERT
  86. MENUITEM "&Arrange Icons", IDM_ARRANGEICONS
  87. MENUITEM "&Refresh\tF5", IDM_REFRESH
  88. END
  89. POPUP "&Help"
  90. BEGIN
  91. MENUITEM "&Contents", IDM_CONTENTS
  92. #if 0
  93. MENUITEM "&Search for Help on...", IDM_SEARCHHELP
  94. MENUITEM "&How to Use Help", IDM_HELPHELP
  95. #endif
  96. MENUITEM SEPARATOR
  97. MENUITEM "&About ClipBook Viewer...", IDM_ABOUT
  98. END
  99. END
  100. STRINGTABLE PRELOAD
  101. BEGIN
  102. IDS_HELV, "MS Shell Dlg" // max 32
  103. IDS_APPNAME, "ClipBook Viewer" // max 32
  104. IDS_SHROBJNAME, "ClipBook Page" // max 80
  105. IDS_FILTERTEXT, "NT Clipboard File (*.CLP)\1*.CLP\1Win 3.1 Clipbrd (*.CLP)\1*.CLP\1All Files (*.*)\1*.*\1"
  106. // used by clipdsp.c
  107. IDS_ERROR, "The ClipBook Viewer cannot display the information you have copied. To view the information, try pasting it into a document."
  108. IDS_BINARY, "The information is in a binary format. ClipBook Viewer cannot display this format. To view the information, try pasting it into a document."
  109. IDS_CLEAR, "The contents of Clipboard cannot be deleted."
  110. IDS_CANTDISPLAY, "ClipBook Viewer cannot display the information in its current format. To view the information, try pasting it into a document."
  111. IDS_NOTRENDERED, "ClipBook Viewer cannot display the information in its current format or there is not enough memory to display it. Quit one or more applications to increase the available memory, and then try again."
  112. IDS_ALREADYOPEN, "Cannot open Clipboard because another application is using it. Try closing any open applications."
  113. IDS_CLEARTITLE, "Clear Clipboard"
  114. IDS_CONFIRMCLEAR, "Do you want to clear the contents of the Clipboard?"
  115. IDS_BADBMPFMT, "The display driver on this computer cannot display this information in bitmap format."
  116. IDS_INTERNALERR, "An error has occurred. ClipBook Viewer cannot complete this procedure."
  117. IDS_DATAUNAVAIL, "There is a problem with the connection to the other computer. Try reconnecting to the computer that contains the ClipBook page."
  118. IDS_NOCLPBOOK, "The ClipBook service is unavailable or is not started. Contact your system administrator to have this service started."
  119. IDS_TSNOTSUPPORTED, "The ClipBook service is not available from a Terminal Server remote session."
  120. IDS_LOCALCLIP, "Local ClipBook"
  121. IDS_CLIPBOARD, "Clipboard"
  122. IDS_READINGITEM, "Opening the Clipboard file."
  123. IDS_VIEWHELPFMT, "Displays information in %s format."
  124. IDS_ACTIVATEFMT, "Makes %s window active."
  125. IDS_DEFFORMAT, "&Default Format"
  126. IDS_GETTINGDATA, "Preparing to display the contents of the Clipboard."
  127. IDS_NAMEEXISTS, "The page already exists. Paste anyway?"
  128. IDS_ESTABLISHING, "Establishing connection"
  129. IDS_NOCONNECTION, "A connection could not be established to the specified computer."
  130. IDS_CLIPBOOKONFMT, "ClipBook on %s"
  131. IDS_PAGEFMT, "1 Page"
  132. IDS_PAGEFMTPL, "%d Pages"
  133. IDS_PAGEOFPAGEFMT, "Page %d of %d"
  134. IDS_DELETE, "Delete"
  135. IDS_DELETECONFIRMFMT, "Delete '%s'?"
  136. IDS_FILEFILTER, "Clipboard Files(*.CLP)"
  137. IDS_CB_PAGE, "ClipBook Page:"
  138. IDS_GETPERMS, "Getting permissions..."
  139. IDS_PASTEDLGTITLE "Paste"
  140. IDS_SHAREDLGTITLE "Share"
  141. IDS_PASSWORDSYNTAX "You cannot use a comma (,) in a password. Use another password."
  142. IDS_PAGENAMESYNTAX "You cannot use an equal sign (=) or a comma (,) or a backslash (\\) in a page name. Use another name."
  143. IDS_SHARINGERROR "This page could not be shared."
  144. IDS_MAXPAGESERROR "The ClipBook is full. Before you can save this information, you must delete some existing pages."
  145. IDS_PRIVILEGEERROR, "You do not have sufficient privileges to perform this action."
  146. // DO NOT LOCALIZE the below formats!
  147. CF_TEXT, "&Text"
  148. CF_BITMAP, "&Bitmap"
  149. CF_METAFILEPICT,"&Picture"
  150. CF_SYLK, "&Sylk"
  151. CF_DIF, "&DIF"
  152. CF_TIFF, "T&IFF"
  153. CF_OEMTEXT, "&OEM Text"
  154. CF_DIB, "&DIB Bitmap"
  155. CF_PALETTE, "Pal&ette"
  156. CF_PENDATA, "Pe&n Data"
  157. CF_RIFF, "&RIFF"
  158. CF_WAVE, "&Wave Audio"
  159. CF_OWNERDISPLAY,"O&wner display"
  160. CF_DSPTEXT, "Disp&lay Text"
  161. CF_DSPBITMAP, "Displa&y Bitmap"
  162. CF_DSPMETAFILEPICT, "Display Pict&ure"
  163. CF_ENHMETAFILE, "&Enhanced Metafile"
  164. CF_DSPENHMETAFILE, "Display En&hanced Metafile"
  165. CF_UNICODETEXT, "&Unicode Text"
  166. CF_HDROP, "&Drag-Drop Data"
  167. CF_LOCALE, "&Locale"
  168. IDS_CLPBKKEY, "Software\\Microsoft\\Clipbook"
  169. IDS_TRUSTSHRKEY, "Software\\Microsoft\\NetDDE\\DDE Trusted Shares\\"
  170. //For Menu string of Clipboard Format name.
  171. CF_MN_TEXT, "&Text"
  172. CF_MN_BITMAP, "&Bitmap"
  173. CF_MN_METAFILEPICT, "&Picture"
  174. CF_MN_SYLK, "Syl&k"
  175. CF_MN_DIF, "D&IF"
  176. CF_MN_TIFF, "TI&FF"
  177. CF_MN_OEMTEXT, "O&EM Text"
  178. CF_MN_DIB, "DIB Bit&map"
  179. CF_MN_PALETTE, "Pa&lette"
  180. CF_MN_PENDATA, "Pen Da&ta"
  181. CF_MN_RIFF, "&RIFF"
  182. CF_MN_WAVE, "W&ave Audio"
  183. CF_MN_OWNERDISPLAY, "O&wner display"
  184. CF_MN_DSPTEXT, "D&isplay Text"
  185. CF_MN_DSPBITMAP, "Displa&y Bitmap"
  186. CF_MN_DSPMETAFILEPICT, "Display Pict&ure"
  187. CF_MN_ENHMETAFILE, "&Enhanced Metafile"
  188. CF_MN_DSPENHMETAFILE, "Display En&hanced Metafile"
  189. CF_MN_UNICODETEXT, "&Unicode Text"
  190. CF_MN_HDROP, "Drag&-Drop Data"
  191. CF_MN_LOCALE, "&Locale"
  192. // Permission names used in "Security..Permissions" dialog, localize
  193. // (max length = 64 chars or MAC_PERMNAMELEN - 1)
  194. IDS_PERMNAMEFIRST, "No Access"
  195. IDS_PERMNAMEFIRST + 1, "Read"
  196. IDS_PERMNAMEFIRST + 2, "Read and Link"
  197. IDS_PERMNAMEFIRST + 3, "Change"
  198. IDS_PERMNAMEFIRST + 4, "Full Control"
  199. IDS_PERMNAMEFIRST + 5, "&Read"
  200. IDS_PERMNAMEFIRST + 6, "&Write"
  201. IDS_PERMNAMEFIRST + 7, "Initiate &static"
  202. IDS_PERMNAMEFIRST + 8, "Initiate lin&k"
  203. IDS_PERMNAMEFIRST + 9, "Re&quest"
  204. IDS_PERMNAMEFIRST + 10, "Ad&vise"
  205. IDS_PERMNAMEFIRST + 11, "&Poke"
  206. IDS_PERMNAMEFIRST + 12, "E&xecute"
  207. IDS_PERMNAMEFIRST + 13, "A&dd"
  208. IDS_PERMNAMEFIRST + 14, "L&ist"
  209. IDS_PERMNAMEFIRST + 15, "D&elete"
  210. IDS_PERMNAMEFIRST + 16, "Read contro&l"
  211. IDS_PERMNAMEFIRST + 17, "Write DA&C"
  212. IDS_PERMNAMEFIRST + 18, "Write &owner"
  213. // Names for audit types, localize (max length = 64 chars or
  214. // MAC_PERMNAMELEN - 1)
  215. IDS_AUDITNAMEFIRST, "&Read"
  216. IDS_AUDITNAMEFIRST + 1, "&Delete"
  217. // IDS_AUDITNAMEFIRST + 2, "Create &New Page"
  218. IDS_AUDITNAMEFIRST + 2, "Change &Permissions"
  219. IDS_AUDITNAMEFIRST + 3, "Change &Audit Types"
  220. // MenuHelp Strings, localize
  221. MH_BASE+IDM_OPEN, "Opens a Clipboard file and displays its contents."
  222. MH_BASE+IDM_SAVEAS, "Saves the Clipboard contents in a new file."
  223. MH_BASE+IDM_SHARE, "Makes the information in the page available to others."
  224. MH_BASE+IDM_UNSHARE, "Makes the information no longer available to others."
  225. #if 0
  226. MH_BASE+IDM_PROPERTIES, "View properties of ClipBook page."
  227. #endif
  228. MH_BASE+IDM_CONNECT, "Opens the ClipBook on another computer."
  229. MH_BASE+IDM_DISCONNECT, "Closes the ClipBook from another computer."
  230. MH_BASE+IDM_EXIT, "Quits ClipBook Viewer."
  231. #if 0
  232. MH_BASE+IDM_UNDO, "Undo last operation."
  233. #endif
  234. MH_BASE+IDM_COPY, "Copies the contents of the ClipBook page onto the Clipboard."
  235. MH_BASE+IDM_KEEP, "Pastes the contents of the Clipboard onto a ClipBook page."
  236. MH_BASE+IDM_DELETE, "Deletes ClipBook page or contents of Clipboard."
  237. MH_BASE+IDM_PERMISSIONS, "Change access permissions on the selected page."
  238. MH_BASE+IDM_AUDITING, "Set auditing levels for the selected page."
  239. MH_BASE+IDM_OWNER, "Take ownership of the selected page."
  240. MH_BASE+IDM_TOOLBAR, "Displays or hides the toolbar."
  241. MH_BASE+IDM_STATUSBAR, "Displays or hides the status bar."
  242. MH_BASE+IDM_LISTVIEW, "Displays the contents of the selected ClipBook by title."
  243. MH_BASE+IDM_PREVIEWS, "Displays a snapshot of each page of the selected ClipBook."
  244. MH_BASE+IDM_PAGEVIEW, "Displays pages of the selected ClipBook one at a time."
  245. MH_BASE+IDM_TILEVERT, "Arranges open windows side-by-side."
  246. MH_BASE+IDM_TILEHORZ, "Arranges open windows one on top of the other without overlapping."
  247. MH_BASE+IDM_CASCADE, "Arranges open windows so that their title bars are visible."
  248. MH_BASE+IDM_ARRANGEICONS, "Arranges icons in a row at the bottom of the window."
  249. MH_BASE+IDM_REFRESH, "Updates the active window."
  250. MH_BASE+IDM_CONTENTS, "Displays the contents of the Help file."
  251. MH_BASE+IDM_SEARCHHELP, "Searches the Help file by topic."
  252. MH_BASE+IDM_HELPHELP, "Displays information about using Help."
  253. MH_BASE+IDM_ABOUT, "Displays information about the ClipBook Viewer."
  254. MH_BASE+CBM_AUTO, "Displays the data in the default format."
  255. MH_POPUPBASE+0, "Commands to open files and manage connections."
  256. MH_POPUPBASE+1, "Commands to transfer Clipboard information."
  257. MH_POPUPBASE+2, "Commands to change the security attributes of ClipBook pages."
  258. MH_POPUPBASE+3, "Commands to change the display of information."
  259. MH_POPUPBASE+4, "Commands to manage ClipBook windows."
  260. MH_POPUPBASE+5, "Commands to use Help."
  261. MH_TOOLTIP+IDM_SHARE, "Share"
  262. MH_TOOLTIP+IDM_UNSHARE, "Stop Sharing"
  263. MH_TOOLTIP+IDM_CONNECT, "Connect"
  264. MH_TOOLTIP+IDM_DISCONNECT, "Disconnect"
  265. MH_TOOLTIP+IDM_COPY, "Copy"
  266. MH_TOOLTIP+IDM_KEEP, "Paste"
  267. MH_TOOLTIP+IDM_DELETE, "Delete"
  268. MH_TOOLTIP+IDM_LISTVIEW, "Table of Contents"
  269. MH_TOOLTIP+IDM_PREVIEWS, "Thumbnails"
  270. MH_TOOLTIP+IDM_PAGEVIEW, "Full Page"
  271. IDS_SPECIAL, "Special..."
  272. END
  273. #include "dialogs.dlg"