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.

231 lines
12 KiB

  1. /*
  2. * clidemo.rc - OLE Client Demonstration application resource file
  3. *
  4. * Created by Microsoft Corporation.
  5. * (c) Copyright Microsoft Corp. 1990 - 1992 All Rights Reserved
  6. */
  7. #include <windows.h>
  8. #include "demorc.h"
  9. #include "clidemo.rcv"
  10. ID_APPLICATION ICON CLIDEMO.ICO
  11. ID_APPLICATION MENU
  12. BEGIN
  13. POPUP "&File"
  14. BEGIN
  15. MENUITEM "&New", IDM_NEW
  16. MENUITEM "&Open...", IDM_OPEN
  17. MENUITEM "&Save", IDM_SAVE
  18. MENUITEM "Save &As...", IDM_SAVEAS
  19. MENUITEM SEPARATOR
  20. MENUITEM "E&xit", IDM_EXIT
  21. MENUITEM "A&bout...", IDM_ABOUT
  22. END
  23. POPUP "&Edit"
  24. BEGIN
  25. MENUITEM "Cu&t\tShift+Del", IDM_CUT
  26. MENUITEM "&Copy\tCtrl+Ins", IDM_COPY
  27. MENUITEM "&Paste\tShift+Ins", IDM_PASTE
  28. MENUITEM "Paste &Link", IDM_PASTELINK
  29. MENUITEM SEPARATOR
  30. MENUITEM "Clea&r\tDel", IDM_CLEAR
  31. MENUITEM "Clear &All", IDM_CLEARALL
  32. MENUITEM SEPARATOR
  33. MENUITEM "Lin&ks...", IDM_LINKS
  34. MENUITEM "&Objects", IDM_VERBMIN
  35. END
  36. POPUP "&Insert"
  37. BEGIN
  38. MENUITEM "&Object...", IDM_INSERT
  39. MENUITEM "&Template...", IDM_INSERTFILE
  40. END
  41. END
  42. ID_APPLICATION ACCELERATORS
  43. BEGIN
  44. VK_DELETE, IDM_CLEAR, VIRTKEY
  45. VK_DELETE, IDM_CUT, VIRTKEY, SHIFT
  46. VK_INSERT, IDM_COPY, VIRTKEY, CONTROL
  47. VK_INSERT, IDM_PASTE, VIRTKEY, SHIFT
  48. END
  49. /*
  50. * Dialog for Link Properties...
  51. */
  52. DTPROP DIALOG 45, 38, 292, 103
  53. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  54. CAPTION "Links"
  55. BEGIN
  56. LISTBOX IDD_LINKNAME, 2, 14, 240, 43, LBS_EXTENDEDSEL |
  57. LBS_MULTIPLESEL | WS_VSCROLL
  58. LTEXT "Update:", -1, 3, 58, 44, 8
  59. RADIOBUTTON "&Automatic", IDD_AUTO, 31, 56, 46, 12, WS_TABSTOP
  60. RADIOBUTTON "&Manual", IDD_MANUAL, 78, 56, 42, 12, WS_TABSTOP
  61. PUSHBUTTON "&Update Now", IDD_UPDATE, 40, 75, 48, 14
  62. PUSHBUTTON "&Cancel Link", IDD_FREEZE, 98, 75, 45, 14
  63. PUSHBUTTON "C&hange Link...", IDD_CHANGE, 153, 75, 52, 14
  64. PUSHBUTTON "OK", IDOK, 254, 12, 32, 14
  65. DEFPUSHBUTTON "Cancel", IDCANCEL, 254, 30, 32, 14
  66. LTEXT "&Links:", 5, 2, 4, 27, 8
  67. END
  68. INVALIDLINK DIALOG 9, 25, 155, 55
  69. STYLE MB_ICONEXCLAMATION | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  70. CAPTION "CliDemo"
  71. BEGIN
  72. LTEXT "Some linked files were unavailable", -1, 30, 5, 140, 8, NOT WS_GROUP
  73. LTEXT "and could not be updated.", -1, 30, 14, 112, 8, NOT WS_GROUP
  74. PUSHBUTTON "OK", IDOK, 30, 33, 36, 14
  75. PUSHBUTTON "&Links...", IDD_CHANGE, 85, 33, 40, 14
  76. CONTROL 32515, -1, "static", SS_ICON | WS_CHILD, 7, 7, 18, 26
  77. END
  78. DTCREATE DIALOG 50, 26, 183, 62
  79. STYLE DS_MODALFRAME| WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  80. CAPTION "Insert New Object"
  81. BEGIN
  82. LTEXT "Object Type:", -1, 7, 5, 123, 8, NOT WS_GROUP
  83. LISTBOX IDD_LISTBOX, 5, 15, 125, 41, LBS_SORT | WS_TABSTOP | WS_VSCROLL
  84. PUSHBUTTON "OK", IDOK, 140, 8, 35, 14, WS_TABSTOP
  85. PUSHBUTTON "Cancel", IDCANCEL, 140, 25, 35, 14, WS_TABSTOP
  86. END
  87. STRINGTABLE LOADONCALL {
  88. IDS_APPNAME, "CliDemo"
  89. IDS_UNTITLED, "(Untitled)"
  90. IDS_MAYBESAVE, "Save Changes to %s?"
  91. IDS_OPENFILE, "File Open"
  92. IDS_SAVEFILE, "File Save As"
  93. IDS_INSERTFILE, "Insert Object from File"
  94. IDS_FILTER, "OLE Object(s)"
  95. IDS_EXTENSION, "OLE"
  96. IDS_CHANGELINK, "Change Link"
  97. IDS_ALLFILTER, "All Files (*.*)"
  98. IDS_EMBEDDED, "Embedded %s"
  99. IDS_UPDATELINKS, "This file contains links to other\ndocuments.\n\nUpdate links now?"
  100. IDS_RENAME, "The selected links to %s have been \nupdated. %s contains additional links \nto %s\n\n Update additional links?"
  101. IDS_INVALID_LINK, "Link is invalid!\n Modify Links?"
  102. IDS_SAVE_CHANGES, "Save changes made to links?"
  103. IDS_UPDATE_OBJ, "This object has been changed.\nUpdate %s before proceeding?"
  104. IDS_RETRY_TEXT1, """%.20s"" is busy. You may 'Switch to'"
  105. IDS_RETRY_TEXT2, """%.20s"" and correct the problem."
  106. E_FAILED_TO_OPEN_FILE, "Failed to open file."
  107. E_FAILED_TO_READ_FILE, "Failed to read file."
  108. E_FAILED_TO_SAVE_FILE, "Failed to save file."
  109. E_INVALID_FILENAME, "Invalid filename."
  110. E_FAILED_TO_DELETE_OBJECT, "Failed to delete object."
  111. E_FAILED_TO_RELEASE_OBJECT, "Failed to release object."
  112. E_CLIPBOARD_CUT_FAILED, "Cut to clipboard failed."
  113. E_CLIPBOARD_COPY_FAILED, "Copy to clipboard failed."
  114. E_GET_FROM_CLIPBOARD_FAILED, "Failed to paste object from clipboard."
  115. E_CREATE_FROM_TEMPLATE, "Failed to create object from file."
  116. E_FAILED_TO_WRITE_OBJECT, "Failed to write object."
  117. E_FAILED_TO_READ_OBJECT, "Failed to read object."
  118. E_FAILED_TO_CREATE_CHILD_WINDOW,"Failed to create child window."
  119. E_FAILED_TO_CREATE_OBJECT, "Failed to create new object."
  120. E_OBJECT_BUSY, "Object is currently busy."
  121. E_UNEXPECTED_RELEASE, "DDE conversation is invalid."
  122. E_FAILED_TO_LAUNCH_SERVER, "Failed to launch server application."
  123. E_FAILED_TO_UPDATE, "Failed to update object."
  124. E_FAILED_TO_FREEZE, "Failed to freeze object."
  125. E_FAILED_TO_UPDATE_LINK, "Failed to update link options."
  126. E_SERVER_BUSY, "Unable to process command, server busy."
  127. E_FAILED_TO_RECONNECT_OBJECT, "Failed to reconnect link to server."
  128. E_FAILED_TO_CONNECT, "Failed to connect;\nLink may be broken."
  129. E_FAILED_TO_ALLOC, "Memory Allocation Failed."
  130. E_FAILED_TO_LOCK, "Fail to lock OLE data."
  131. E_FAILED_TO_DO_VERB, "Could not Edit / Play object."
  132. W_IMPROPER_LINK_OPTIONS, "Warning: Improper link options."
  133. W_STATIC_OBJECT, "Warning: Static object"
  134. W_FAILED_TO_CLONE_UNDO, "Warning: Couldn't clone object."
  135. W_FAILED_TO_NOTIFY, "Warning: Failed to notify library."
  136. SZAUTO, "Automatic"
  137. SZMANUAL, "Manual"
  138. SZFROZEN, "Canceled"
  139. E_OLE_ERROR_MEMORY, "OLE - Could not alloc or lock memory"
  140. E_OLE_ERROR_STREAM, "OLE - (OLESTREAM) stream error"
  141. E_OLE_ERROR_STATIC, "OLE - Non static object expected"
  142. E_OLE_ERROR_BLANK, "OLE - Critical data missing"
  143. E_OLE_ERROR_DRAW, "OLE - Error while drawing"
  144. E_OLE_ERROR_METAFILE, "OLE - Invalid metafile"
  145. E_OLE_ERROR_ABORT, "OLE - Client chose to abort metafile drawing"
  146. E_OLE_ERROR_CLIPBOARD, "OLE - Failed to get/set clipboard data"
  147. E_OLE_ERROR_FORMAT, "OLE - Requested format is not available"
  148. E_OLE_ERROR_OBJECT, "OLE - Not a valid object"
  149. E_OLE_ERROR_OPTION, "OLE - Invalid option (link update / render)"
  150. E_OLE_ERROR_PROTOCOL, "OLE - Invalid protocol"
  151. E_OLE_ERROR_ADDRESS, "OLE - One of the pointers is invalid"
  152. E_OLE_ERROR_NOT_EQUAL, "OLE - Objects are not equal"
  153. E_OLE_ERROR_HANDLE, "OLE - Invalid handle encountered"
  154. E_OLE_ERROR_GENERIC, "OLE - Some general error"
  155. E_OLE_ERROR_CLASS, "OLE - Invalid class"
  156. E_OLE_ERROR_SYNTAX, "OLE - Command syntax is invalid"
  157. E_OLE_ERROR_DATATYPE, "OLE - Data format is not supported"
  158. E_OLE_ERROR_PALETTE, "OLE - Invalid color palette"
  159. E_OLE_ERROR_NOT_LINK, "OLE - Not a linked object"
  160. E_OLE_ERROR_NOT_EMPTY, "OLE - Client doc contains objects"
  161. E_OLE_ERROR_SIZE, "OLE - Incorrect buffer size passed to E_OLE api"
  162. E_OLE_ERROR_DRIVE, "OLE - Drive letter in doc name is invalid"
  163. E_OLE_ERROR_NETWORK, "OLE - Failed to establish connection to network"
  164. E_OLE_ERROR_NAME, "OLE - Invalid name (doc name, object name)"
  165. E_OLE_ERROR_TEMPLATE, "OLE - Server failed to load template"
  166. E_OLE_ERROR_NEW, "OLE - Server failed to create new doc"
  167. E_OLE_ERROR_EDIT, "OLE - Server failed to edit object"
  168. E_OLE_ERROR_OPEN, "OLE - Server failed to open document"
  169. E_OLE_ERROR_NOT_OPEN, "OLE - Object is not open for editing"
  170. E_OLE_ERROR_LAUNCH, "OLE - Failed to launch server"
  171. E_OLE_ERROR_COMM, "OLE - Failed to communicate with server"
  172. E_OLE_ERROR_TERMINATE, "OLE - Error in termination"
  173. E_OLE_ERROR_COMMAND, "OLE - Error in execute"
  174. E_OLE_ERROR_SHOW, "OLE - Error in show"
  175. E_OLE_ERROR_DOVERB, "OLE - Error in doing verb"
  176. E_OLE_ERROR_ADVISE_NATIVE, "OLE - Item could be missing"
  177. E_OLE_ERROR_ADVISE_PICT, "OLE - Server can't recognize item format"
  178. E_OLE_ERROR_ADVISE_RENAME, "OLE - Server doesn't support rename"
  179. E_OLE_ERROR_POKE_NATIVE, "OLE - Failure of poking native data to server"
  180. E_OLE_ERROR_REQUEST_NATIVE, "OLE - Server failed to render native data"
  181. E_OLE_ERROR_REQUEST_PICT, "OLE - Server failed to render presentation data"
  182. E_OLE_ERROR_SERVER_BLOCKED, "OLE - Server is blocked"
  183. E_OLE_ERROR_REGISTRATION, "OLE - Server is not registered"
  184. E_OLE_ERROR_ALREADY_REGISTERED, "OLE - Trying to register same doc multiple times"
  185. E_OLE_ERROR_TASK, "OLE - Server or client task is invalid"
  186. E_OLE_ERROR_OUTOFDATE, "OLE - Object is out of date"
  187. E_OLE_ERROR_CANT_UPDATE_CLIENT, "OLE - embed doc's client doesn't accept"
  188. E_OLE_ERROR_UPDATE, "OLE - error while trying to update object"
  189. }
  190. AboutBox DIALOG LOADONCALL MOVEABLE DISCARDABLE 22, 17, 160, 75
  191. CAPTION "About Clidemo1"
  192. STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
  193. BEGIN
  194. CTEXT "Microsoft Windows" -1, 0, 5, 160, 8
  195. CTEXT "OLE 1.0 Client Test Application" -1, 0, 14, 160, 8
  196. CTEXT "Version 1.00" -1, 0, 23, 160, 8
  197. CTEXT "(c) Copyright Microsoft Corp. 1990 - 1992" -1, 0, 39, 160, 8
  198. DEFPUSHBUTTON "OK" IDOK, 61, 59, 32, 14, WS_GROUP
  199. END
  200. RetryBox DIALOG 26, 26, 220, 78
  201. CAPTION "CLIDEMO"
  202. FONT 8, "Helv"
  203. STYLE WS_SYSMENU | WS_CAPTION | WS_VISIBLE | DS_MODALFRAME | WS_POPUP
  204. BEGIN
  205. PUSHBUTTON "&Switch To...", IDD_SWITCH, 35, 55, 50, 14
  206. DEFPUSHBUTTON "&Cancel", IDCANCEL, 120, 55, 50, 14
  207. LTEXT "This action cannot be completed because", -1, 35, 9, 160, 8
  208. LTEXT "", IDD_RETRY_TEXT1, 35, 18, 180, 8
  209. LTEXT "", IDD_RETRY_TEXT2, 35, 27, 180, 8
  210. CONTROL 32515, -1, "static", SS_ICON | WS_CHILD, 7, 15, 18, 26
  211. END