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.

305 lines
10 KiB

  1. //
  2. // NMAS.RC
  3. // Copyright(c) Microsoft 1996-
  4. //
  5. #include <dcg.h>
  6. #include <resource.h>
  7. // Version info
  8. #define VER_DESCRIPTION_STR "Application Sharing Core DLL\0"
  9. #define VER_INTERNALNAME_STR "nmas\0"
  10. #define VER_ORIGNAME_STR "nmas.dll\0"
  11. #define VER_FILETYPE VFT_DLL
  12. #ifdef CPI32_W95
  13. #define VER_FILEOS VOS_DOS_WINDOWS32
  14. #else // CPI32_W95
  15. #define VER_FILEOS VOS_NT_WINDOWS32
  16. #endif // CPI32_W95
  17. #include <version.rc>
  18. //
  19. // Bitmaps
  20. //
  21. IDB_HATCH32X32 BITMAP "..\\cpi32\\res\\whatch32.bmp"
  22. IDB_OBSCURED BITMAP "..\\cpi32\\res\\obscure.bmp"
  23. //
  24. // Icons
  25. //
  26. IDI_SHAREICON ICON "..\\cpi32\\res\\wshareap.ico"
  27. IDI_DESKTOPICON ICON "..\\cpi32\\res\\desktop.ico"
  28. IDI_CANCELFULLSCREEN ICON "..\\cpi32\\res\\back.ico"
  29. //
  30. // Strings
  31. //
  32. STRINGTABLE DISCARDABLE
  33. BEGIN
  34. // CM
  35. IDS_FONT_CURSORTAG "Arial"
  36. IDS_RESTORE "Restore"
  37. // Frame title bar
  38. IDS_TITLE_SHAREDPROGRAMS "%s's programs%s"
  39. IDS_TITLE_SHAREDDESKTOP "%s's desktop%s"
  40. IDS_TITLE_CONTROLLABLE " - controllable"
  41. IDS_TITLE_INCONTROL " - controlled by %s"
  42. // Frame menu bar
  43. IDS_CMD_CTRLALTDEL "Send &Ctrl+Alt+Del"
  44. IDS_CMD_TAKECONTROL "&Request Control"
  45. IDS_CMD_CANCELCONTROL "Cancel &Requesting Control"
  46. IDS_CMD_RELEASECONTROL "&Release Control"
  47. IDS_CMD_BLANKPROGRAM "No Programs"
  48. // Share list
  49. IDS_NOTHING "Nothing"
  50. IDS_PROGRAMS "Programs"
  51. IDS_PROGRAMS_LOWER "programs"
  52. IDS_DESKTOP "Desktop"
  53. IDS_DESKTOP_LOWER "desktop"
  54. IDS_HIDDEN_WINDOW "Hidden Window"
  55. IDS_NOTINCALL "Not in a call"
  56. IDS_SHARING_FORMAT "Sharing - %s"
  57. IDS_TOPMOST "Always on &Top"
  58. IDS_ALLOWCONTROL "Allow &Control"
  59. IDS_PREVENTCONTROL "Prevent &Control"
  60. IDS_MSG_TOALLOWCONTROL "Click to allow other people to control your shared programs or desktop."
  61. IDS_MSG_TOPREVENTCONTROL "Click to prevent other people from controlling your shared programs or desktop."
  62. // Status bar
  63. IDS_STATUS_WAITINGFORCONTROL "Waiting for control"
  64. IDS_STATUS_CONTROLPAUSED "Control is paused"
  65. // Informational messages
  66. IDS_TITLE_TAKECONTROL_FAILED "Request Control Failed"
  67. IDS_ERR_TAKECONTROL_FAILED_BUSY "%s is busy right now."
  68. IDS_ERR_TAKECONTROL_FAILED_USER "%s did not accept your request."
  69. IDS_ERR_TAKECONTROL_FAILED_WRONGSTATE "%s isn't controllable."
  70. IDS_ERR_TAKECONTROL_FAILED_TIMEDOUT "%s did not respond to your request."
  71. // Query messages
  72. IDS_TITLE_QUERY_TAKECONTROL "Request Control"
  73. IDS_MSG_QUERY_TAKECONTROL "%s would like to take control of your shared %s."
  74. IDS_TITLE_QUERY_GIVECONTROL "Grant Control"
  75. IDS_MSG_QUERY_GIVECONTROL "%s would like to grant you control of his/her shared %s."
  76. IDS_TITLE_QUERY_FORWARDCONTROL "Forward Control"
  77. IDS_MSG_QUERY_FORWARDCONTROL "%s would like to forward control of your shared %s to %s."
  78. IDS_TITLE_QUERY_YIELDCONTROL "Forward Control"
  79. IDS_MSG_QUERY_YIELDCONTROL "%s would like to forward control of %s's shared %s to you."
  80. //
  81. // Menu status strings
  82. //
  83. IDS_STATUS_MENU_CONTROL "Contains commands for controlling the host's shared programs or desktop."
  84. IDS_STATUS_MENU_VIEW "Contains commands for customizing this window."
  85. IDS_STATUS_MENU_WINDOW "Contains commands for activating the host's shared programs."
  86. IDS_STATUS_MENU_HELP "Contains commands for displaying Help."
  87. IDS_STATUS_MENU_FORWARDCONTROL "Contains commands for forwarding control to other people in the meeting."
  88. IDS_STATUS_CMDS_APP "Activates this shared program."
  89. IDS_STATUS_CMDS_FORWARD "Forwards control to thsi person."
  90. IDS_STATUS_CMD_TOPMOST "Keeps the window on top of all others."
  91. IDS_STATUS_CMD_TAKECONTROL "Asks this person to let you control what is shared."
  92. IDS_STATUS_CMD_RELEASECONTROL "Stops controlling what is shared."
  93. IDS_STATUS_CMD_CANCELCONTROL "Cancels asking the host to let you control what is shared."
  94. IDS_STATUS_CMD_CTRLALTDEL "Sends the special logon/logoff/shutdown key sequence."
  95. IDS_STATUS_CMD_VIEWSTATUSBAR "Shows or hides the status bar."
  96. IDS_STATUS_CMD_VIEWWINDOWBAR "Shows or hides the shared window bar."
  97. IDS_STATUS_CMD_VIEWFULLSCREEN "Makes this window take over the entire screen."
  98. IDS_STATUS_CMD_HELPTOPICS "Opens Help topics."
  99. IDS_STATUS_CMD_HELPABOUT "Displays program information, version number, and copyright."
  100. END
  101. //
  102. // Menus
  103. //
  104. IDM_FRAME MENU DISCARDABLE
  105. BEGIN
  106. POPUP "&Control"
  107. BEGIN
  108. MENUITEM "&Request Control", CMD_TAKECONTROL, GRAYED
  109. POPUP "&Forward Control", GRAYED
  110. BEGIN
  111. MENUITEM "A", CMD_FORWARDCONTROLSTART
  112. END
  113. END
  114. POPUP "&View"
  115. BEGIN
  116. MENUITEM "&Status Bar", CMD_VIEWSTATUSBAR
  117. MENUITEM "&Window Bar", CMD_VIEWWINDOWBAR
  118. MENUITEM SEPARATOR
  119. MENUITEM "&Full Screen\tAlt+Enter", CMD_VIEWFULLSCREEN, GRAYED
  120. END
  121. POPUP "&Window", GRAYED
  122. BEGIN
  123. MENUITEM "A", CMD_APPSTART
  124. END
  125. POPUP "&Help",
  126. BEGIN
  127. MENUITEM "&Help Topics", CMD_HELPTOPICS
  128. MENUITEM SEPARATOR
  129. MENUITEM "&About Sharing", CMD_HELPABOUT
  130. END
  131. END
  132. //
  133. // Dialogs
  134. //
  135. IDD_HOSTUI DIALOGEX 0, 0, 220, 266
  136. STYLE WS_POPUP | WS_CAPTION | WS_BORDER | WS_MINIMIZEBOX | WS_SYSMENU
  137. EXSTYLE WS_EX_DLGMODALFRAME
  138. FONT 8, "Ms Shell Dlg", 0, 0, 0x1
  139. BEGIN
  140. //
  141. // SHARING section
  142. //
  143. // Sharing groupbox
  144. CONTROL "Share Programs", -1, "button",
  145. BS_GROUPBOX,
  146. 7, 7, 206, 141
  147. // Sharing blurb
  148. CONTROL "Select an item to share with other people in the meeting, and then click Share.",
  149. -1, "static", SS_LEFT | SS_NOPREFIX,
  150. 16, 19, 190, 16
  151. // Program list (shared and unshared together)
  152. CONTROL "", CTRL_PROGRAM_LIST, "listbox",
  153. LBS_HASSTRINGS | LBS_NOTIFY | LBS_OWNERDRAWFIXED | WS_BORDER |
  154. WS_TABSTOP | WS_HSCROLL | WS_VSCROLL | WS_DISABLED,
  155. 16, 42, 123, 84
  156. // Action buttons
  157. CONTROL "&Share", CTRL_SHARE_BTN, "button",
  158. BS_PUSHBUTTON | WS_GROUP | WS_TABSTOP | WS_DISABLED,
  159. 146, 42, 60, 14
  160. CONTROL "&Unshare", CTRL_UNSHARE_BTN, "button",
  161. BS_PUSHBUTTON | WS_TABSTOP | WS_DISABLED,
  162. 146, 62, 60, 14
  163. CONTROL "Unshare &All", CTRL_UNSHAREALL_BTN, "button",
  164. BS_PUSHBUTTON | WS_TABSTOP | WS_DISABLED,
  165. 146, 82, 60, 14
  166. // Enable true color sharing
  167. CONTROL "Share in &true color", CTRL_ENABLETRUECOLOR_CHECK,
  168. "button", BS_AUTOCHECKBOX | BS_NOTIFY | WS_TABSTOP | WS_GROUP,
  169. 16, 130, 123, 12
  170. //
  171. // CONTROL section
  172. //
  173. CONTROL "Control", -1, "button",
  174. BS_GROUPBOX,
  175. 7, 155, 206, 83
  176. CONTROL "", CTRL_CONTROL_MSG, "static", SS_LEFT | SS_NOPREFIX,
  177. 16, 167, 192, 16
  178. CONTROL "", CTRL_ALLOWCONTROL_BTN, "button",
  179. BS_PUSHBUTTON | WS_TABSTOP | WS_DISABLED | WS_GROUP,
  180. 16, 190, 70, 14
  181. // Automatically accept control requests
  182. CONTROL "Automatically accept &requests for control",
  183. CTRL_AUTOACCEPTCONTROL_CHECK, "button",
  184. BS_AUTOCHECKBOX | BS_NOTIFY | WS_TABSTOP | WS_GROUP | WS_DISABLED,
  185. 16, 210, 192, 10
  186. CONTROL "&Do not disturb with requests for control right now",
  187. CTRL_TEMPREJECTCONTROL_CHECK, "button",
  188. BS_AUTOCHECKBOX | BS_NOTIFY | WS_TABSTOP | WS_DISABLED,
  189. 16, 222, 192, 10
  190. // Close
  191. CONTROL "Close", IDCANCEL, "button",
  192. BS_PUSHBUTTON | WS_GROUP | WS_TABSTOP,
  193. 153, 245, 60, 14
  194. END
  195. IDD_INFORM DIALOGEX 0, 0, 184, 58
  196. STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU
  197. EXSTYLE WS_EX_DLGMODALFRAME
  198. FONT 8, "Ms Shell Dlg", 0, 0, 01
  199. BEGIN
  200. // Inform Icon
  201. ICON IDI_INFORMATION,-1, 6, 9, 18, 20
  202. // Inform Message
  203. CONTROL "", CTRL_INFORM, "Static",
  204. SS_NOPREFIX | SS_LEFT | WS_CHILD,
  205. 39, 7, 138, 27
  206. // OK
  207. CONTROL "OK", IDOK, "Button",
  208. BS_DEFPUSHBUTTON | WS_TABSTOP | WS_GROUP | WS_CHILD,
  209. 67, 37, 50, 14
  210. END
  211. IDD_QUERY DIALOGEX 0, 0, 184, 67
  212. STYLE WS_POPUP | WS_CAPTION | DS_CENTER | WS_SYSMENU
  213. EXSTYLE WS_EX_DLGMODALFRAME | WS_EX_TOPMOST
  214. FONT 8, "Ms Shell Dlg", 0, 0, 01
  215. BEGIN
  216. // Query Icon
  217. ICON IDI_QUESTION, -1, 6, 15, 18, 20
  218. // Query Message
  219. CONTROL "", CTRL_QUERY, "Static",
  220. SS_NOPREFIX | SS_LEFT | WS_CHILD,
  221. 39, 7, 138, 36
  222. // Accept/Reject
  223. CONTROL "&Accept", IDOK, "Button",
  224. BS_DEFPUSHBUTTON | WS_TABSTOP | WS_GROUP | WS_CHILD,
  225. 37, 46, 50, 14
  226. CONTROL "&Reject", IDCANCEL, "Button",
  227. BS_PUSHBUTTON | WS_TABSTOP | WS_GROUP | WS_CHILD,
  228. 97, 46, 50, 14
  229. END
  230. IDD_ABOUT DIALOGEX 0, 0, 210, 81
  231. STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU
  232. EXSTYLE WS_EX_DLGMODALFRAME
  233. CAPTION "About Sharing"
  234. FONT 8, "Ms Shell Dlg", 0, 0, 0x1
  235. BEGIN
  236. ICON IDI_SHAREICON, -1,
  237. 6, 7, 18, 20
  238. LTEXT "Sharing", -2,
  239. 39, 7, 164, 10
  240. LTEXT VER_PRODUCTNAME_STR, -3,
  241. 39, 19, 164, 10
  242. LTEXT "Version %s (%s)", CTRL_ABOUTVERSION,
  243. 39, 31, 164, 10
  244. LTEXT VER_COPYRIGHT_STR, -4,
  245. 39, 43, 164, 10
  246. DEFPUSHBUTTON "OK", IDOK,
  247. 80, 60, 50, 14
  248. END
  249.