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.

383 lines
13 KiB

  1. /*++
  2. Copyright (c) 1994-1998, Microsoft Corporation All rights reserved.
  3. Module Name:
  4. main.rc
  5. Abstract:
  6. This module contains the resources for this project.
  7. Revision History:
  8. --*/
  9. //
  10. // Include Files.
  11. //
  12. #include <windows.h>
  13. #include <commctrl.h>
  14. #include "rc.h"
  15. #include "mousectl.h"
  16. //
  17. // Constant Declarations.
  18. //
  19. #define IDC_STATIC -1
  20. //
  21. // Icons.
  22. //
  23. //
  24. // Applet Icons.
  25. //
  26. IDI_MOUSE ICON PRELOAD DISCARDABLE "MOUSE.ICO"
  27. IDI_KEYBD ICON PRELOAD DISCARDABLE "KEYBD.ICO"
  28. IDI_PRINT ICON PRELOAD DISCARDABLE "PRTFLDSH.ICO"
  29. IDI_FONTS ICON PRELOAD DISCARDABLE "FNTFLDSH.ICO"
  30. IDI_ADM ICON PRELOAD DISCARDABLE "ADMFLDSH.ICO"
  31. //
  32. // Mouse Button Page Icons.
  33. //
  34. #ifndef WINNT
  35. IDI_PTTRAILS ICON PRELOAD DISCARDABLE "pt02.ico"
  36. #else
  37. IDI_SNAPDEF ICON PRELOAD DISCARDABLE "pt04.ico"
  38. #endif
  39. IDI_PTSPEED ICON PRELOAD DISCARDABLE "pt03.ico"
  40. IDI_SGLCLICK ICON PRELOAD DISCARDABLE "sglclk.ico"
  41. IDI_DBLCLICK ICON PRELOAD DISCARDABLE "dblclk.ico"
  42. //
  43. // Keyboard Pointer Page Icons.
  44. //
  45. IDI_DELAY ICON PRELOAD DISCARDABLE "delay.ico"
  46. IDI_REPEAT ICON PRELOAD DISCARDABLE "repeat.ico"
  47. //
  48. // Bitmaps.
  49. //
  50. IDB_MOUSE BITMAP PRELOAD DISCARDABLE "MOUSE.BMP"
  51. //
  52. // Animations.
  53. //
  54. IDA_JACKNBOX AVI PRELOAD DISCARDABLE "JACKNBOX.AVI"
  55. //
  56. // Strings.
  57. //
  58. //
  59. // Applet Names and Descriptions.
  60. //
  61. STRINGTABLE DISCARDABLE
  62. BEGIN
  63. IDS_MOUSE_TITLE "Mouse"
  64. IDS_MOUSE_EXPLAIN "Customizes your mouse settings"
  65. IDS_KEYBD_TITLE "Keyboard"
  66. IDS_KEYBD_EXPLAIN "Customizes your keyboard settings"
  67. END
  68. STRINGTABLE DISCARDABLE
  69. BEGIN
  70. IDS_KEYBD_NOSETSPEED "You cannot change the speed for your keyboard because your keyboard driver does not support this feature."
  71. END
  72. STRINGTABLE DISCARDABLE
  73. BEGIN
  74. IDS_UNKNOWN "(Unknown)"
  75. END
  76. STRINGTABLE DISCARDABLE
  77. BEGIN
  78. IDS_NONE, "(None)"
  79. IDS_SUFFIX, " (system scheme)"
  80. IDS_OVERWRITE_TITLE, "Replace Scheme?"
  81. IDS_OVERWRITE_MSG, "The Cursor Scheme name you selected is already in use. Do you want to replace the original scheme?"
  82. IDS_NAME, "Confirm Scheme Removal"
  83. IDS_REMOVESCHEME, "Are you sure you want to completely remove the scheme '%s' from your system?"
  84. IDS_CUR_BADFILE, "The %s file, which contains the '%s' cursor, is either missing or corrupt."
  85. IDS_CUR_BROWSE, "Browse"
  86. IDS_CUR_FILTER, "Cursors (*.cur)\1*.cur\1All Files\1*.*\1"
  87. IDS_ANICUR_FILTER, "Cursors (*.ani, *.cur)\1*.ani;*.cur\1Animated Cursors (*.ani)\1*.ani\1Static Cursors (*.cur)\1*.cur\1All Files\1*.*\1"
  88. IDS_ARROW, "Normal Select"
  89. IDS_WAIT, "Busy"
  90. IDS_APPSTARTING, "Working In Background"
  91. IDS_NO, "Unavailable"
  92. IDS_IBEAM, "Text Select"
  93. IDS_CROSS, "Precision Select"
  94. IDS_SIZENS, "Vertical Resize"
  95. IDS_SIZEWE, "Horizontal Resize"
  96. IDS_SIZENWSE, "Diagonal Resize 1"
  97. IDS_SIZENESW, "Diagonal Resize 2"
  98. IDS_SIZEALL, "Move"
  99. IDS_HANDCUR, "Link Select"
  100. IDS_HELPCUR, "Help Select"
  101. IDS_NWPEN, "Handwriting"
  102. IDS_UPARROW "Alternate Select"
  103. END
  104. STRINGTABLE DISCARDABLE
  105. BEGIN
  106. IDS_MOUSE_TSHOOT, "hh.exe ms-its:tshoot.chm::/hdw_mouse.htm"
  107. IDS_KEYBD_TSHOOT, "hh.exe ms-its:tshoot.chm::/hdw_keyboard.htm"
  108. END
  109. //
  110. // Dialog Boxes.
  111. //
  112. //
  113. // Mouse Applet.
  114. //
  115. DLG_MOUSE_BUTTONS DIALOG DISCARDABLE 0, 0, 252, 218
  116. STYLE DS_MODALFRAME | DS_3DLOOK | WS_POPUP | WS_CAPTION | WS_SYSMENU
  117. CAPTION "Buttons"
  118. FONT 8, "MS Shell Dlg"
  119. BEGIN
  120. GROUPBOX "Button configuration",IDC_GROUPBOX_1,7,7,237,89
  121. CONTROL " &Right-handed",MOUSE_RIGHTHAND,"Button",
  122. BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP,13,22,66,9
  123. CONTROL " &Left-handed",MOUSE_LEFTHAND,"Button",
  124. BS_AUTORADIOBUTTON | WS_TABSTOP,80,22,66,9
  125. CONTROL "",MOUSE_MOUSEBMP,"PropertyMouseButtonControl",WS_GROUP,
  126. 93,32,65,62
  127. LTEXT "Left Button:",IDC_GROUPBOX_2,13,37,45,9
  128. LTEXT " - Normal Select\r\n - Normal Drag",IDC_SELECTDRAG,17,
  129. 47,54,17
  130. LTEXT "Right Button:",IDC_GROUPBOX_3,170,37,54,9
  131. LTEXT " - Context Menu\r\n - Special Drag",IDC_OBJECTMENU,
  132. 174,47,54,17
  133. GROUPBOX "Files and Folders",IDC_GROUPBOX_6,7,100,237,38
  134. ICON "",MOUSE_CLICKICON,17,112,20,20
  135. CONTROL "&Single-click to open an item (point to select)",
  136. MOUSE_SGLCLICK,"Button",BS_AUTORADIOBUTTON,47,111,190,10
  137. CONTROL "&Double-click to open an item (single-click to select)",
  138. MOUSE_DBLCLICK,"Button",BS_AUTORADIOBUTTON,47,124,190,10
  139. GROUPBOX "Double-click s&peed",IDC_GROUPBOX_4,7,144,237,67
  140. LTEXT "Slow",IDC_STATIC,17,173,17,9
  141. LTEXT "Fast",IDC_STATIC,144,173,15,8
  142. CONTROL "",MOUSE_CLICKSCROLL,"msctls_trackbar32",WS_GROUP |
  143. WS_TABSTOP,38,173,102,16
  144. RTEXT "Test area:",IDC_GROUPBOX_5,120,154,59,9
  145. CONTROL "#100",MOUSE_DBLCLKBMP,"SysAnimate32",ACS_CENTER |
  146. ACS_TRANSPARENT | WS_BORDER,185,153,53,52
  147. END
  148. DLG_MOUSE_POINTER DIALOG DISCARDABLE 0, 0, 252, 218
  149. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CLIPSIBLINGS | WS_CAPTION | DS_3DLOOK
  150. CAPTION "Pointers"
  151. FONT 8, "MS Shell Dlg"
  152. BEGIN
  153. GROUPBOX "&Scheme",IDC_GROUPBOX_1,7,7,178,53
  154. COMBOBOX ID_SCHEMECOMBO,13,21,165,160,CBS_DROPDOWNLIST | CBS_SORT |
  155. WS_VSCROLL | WS_TABSTOP
  156. PUSHBUTTON "Sa&ve As...",ID_SAVESCHEME,74,39,50,14
  157. PUSHBUTTON "&Delete",ID_REMOVESCHEME,128,39,50,14
  158. ICON "",ID_PREVIEW,191,11,53,48, SS_CENTERIMAGE | SS_SUNKEN
  159. LTEXT "&Customize:",-1,7,66,100,9
  160. LISTBOX ID_CURSORLIST,7,77,237,113,LBS_OWNERDRAWFIXED |
  161. LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
  162. CONTROL "&Enable pointer shadow",ID_CURSORSHADOW,"Button",
  163. BS_AUTOCHECKBOX | WS_TABSTOP,7,194,100,12
  164. PUSHBUTTON "Use De&fault",ID_DEFAULT,140,196,50,14
  165. PUSHBUTTON "&Browse...",ID_BROWSE,194,196,50,14
  166. END
  167. DLG_MOUSE_POINTER_SCHEMESAVE DIALOG DISCARDABLE 132, 64, 227, 60
  168. STYLE DS_3DLOOK | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | DS_CONTEXTHELP
  169. CAPTION "Save Scheme"
  170. FONT 8, "MS Shell Dlg"
  171. BEGIN
  172. LTEXT "Save this cursor scheme as:",-1,7,7,144,9
  173. EDITTEXT ID_SCHEMEFILENAME,7,17,212,14,ES_AUTOHSCROLL
  174. DEFPUSHBUTTON "OK",IDOK,116,39,50,14,WS_GROUP
  175. PUSHBUTTON "Cancel",IDCANCEL,169,39,50,14,WS_GROUP
  176. END
  177. DLG_MOUSE_POINTER_BROWSE DIALOG DISCARDABLE 0, 0, 94, 44
  178. STYLE WS_CHILD | WS_CLIPSIBLINGS | DS_3DLOOK
  179. FONT 8, "MS Shell Dlg"
  180. BEGIN
  181. LTEXT "Preview:",IDC_GROUPBOX_1,4,4,36,9
  182. ICON "",ID_CURSORPREVIEW,44,0,45,42,SS_CENTERIMAGE | SS_SUNKEN
  183. END
  184. DLG_MOUSE_MOTION DIALOG DISCARDABLE 0, 0, 252, 218
  185. STYLE DS_MODALFRAME | 4L | WS_POPUP | WS_CAPTION | WS_SYSMENU
  186. CAPTION "Motion"
  187. FONT 8, "MS Shell Dlg"
  188. BEGIN
  189. GROUPBOX "&Speed",IDC_GROUPBOX_1,5,5,237,55
  190. ICON IDI_PTSPEED,MOUSE_SPEEDBMP,13,18,16,16
  191. LTEXT "Adjust how fast your pointer moves",IDC_STATIC,39,20,
  192. 120,8
  193. RTEXT "Slow",IDC_STATIC,60,45,20,9
  194. LTEXT "Fast",IDC_STATIC,170,45,16,9
  195. CONTROL "",MOUSE_SPEEDSCROLL,TRACKBAR_CLASS,WS_TABSTOP |
  196. TBS_AUTOTICKS,84,35,80,16
  197. GROUPBOX "Acceleration",IDC_GROUPBOX_2,5,65,237,55,
  198. WS_GROUP
  199. ICON IDI_PTSPEED,MOUSE_ACCELBMP,13,80,16,16
  200. LTEXT "Adjust how much your pointer accelerates as you move it faster",
  201. IDC_STATIC,39,80,145,20
  202. CONTROL "&None",MOUSE_ACCELNONE,"Button",BS_AUTORADIOBUTTON |
  203. WS_TABSTOP,35,105,33,10
  204. CONTROL "&Low",MOUSE_ACCELLOW,"Button",BS_AUTORADIOBUTTON,
  205. 90,105,28,10
  206. CONTROL "&Medium",MOUSE_ACCELMEDIUM,"Button",BS_AUTORADIOBUTTON,
  207. 137,105,40,10
  208. CONTROL "&High",MOUSE_ACCELHIGH,"Button",BS_AUTORADIOBUTTON,
  209. 190,105,30,10
  210. #ifndef WINNT // Mouse Trails are not implemented on NT.
  211. GROUPBOX "Pointer &trail",IDC_GROUPBOX_3,5,125,237,63
  212. CONTROL " Sh&ow pointer trails",MOUSE_TRAILS,"Button",
  213. BS_AUTOCHECKBOX | WS_TABSTOP,56,142,82,13
  214. ICON IDI_PTTRAILS,MOUSE_PTRTRAIL,14,142,18,20
  215. LTEXT "Short",MOUSE_TRAILSCROLLTXT1,56,160,17,9
  216. LTEXT "Long",MOUSE_TRAILSCROLLTXT2,210,160,20,8
  217. CONTROL "",MOUSE_TRAILSCROLL,TRACKBAR_CLASS,WS_GROUP |
  218. WS_TABSTOP | TBS_AUTOTICKS,75,160,134,16
  219. #else
  220. // Eventually replace this with snap to default for NT.
  221. GROUPBOX "Snap to &default",IDC_GROUPBOX_4,5,125,237,49
  222. CONTROL "Move pointer to the default button in dialog boxes",MOUSE_SNAPDEF,"Button",
  223. BS_AUTOCHECKBOX | WS_TABSTOP,50,143,182,13
  224. ICON IDI_SNAPDEF,MOUSE_PTRSNAPDEF,19,142,18,20
  225. #endif
  226. END
  227. //
  228. // Keyboard Applet.
  229. //
  230. DLG_KEYBD_SPEED DIALOG DISCARDABLE 0, 0, 252, 218
  231. STYLE DS_MODALFRAME | 4L | WS_POPUP | WS_CAPTION | WS_SYSMENU
  232. CAPTION "Speed"
  233. FONT 8, "MS Shell Dlg"
  234. BEGIN
  235. GROUPBOX "Character repeat",KDELAY_GROUP,7,7,237,146
  236. ICON IDI_DELAY,IDC_STATIC,21,24,18,20
  237. LTEXT "Repeat &delay:",IDC_STATIC,56,24,46,9
  238. LTEXT "Long",IDC_STATIC,56,38,17,9
  239. LTEXT "Short",IDC_STATIC,210,38,17,9
  240. CONTROL "",KDELAY_SCROLL,TRACKBAR_CLASS,WS_TABSTOP | TBS_AUTOTICKS,
  241. 75,38,134,18
  242. ICON IDI_REPEAT,IDC_STATIC,21,70,18,20
  243. LTEXT "&Repeat rate:",IDC_STATIC,56,70,41,9
  244. LTEXT "Slow",IDC_STATIC,56,84,18,9
  245. LTEXT "Fast",IDC_STATIC,210,84,16,8
  246. CONTROL "",KSPEED_SCROLL,TRACKBAR_CLASS,WS_TABSTOP | TBS_AUTOTICKS,
  247. 75,84,134,18
  248. LTEXT "Click here and hold down a key to &test repeat rate:",
  249. IDC_STATIC,21,115,187,9
  250. EDITTEXT KREPEAT_EDIT,21,125,209,14,ES_AUTOHSCROLL
  251. GROUPBOX "Cursor &blink rate",KBLINK_GROUP,7,157,237,49
  252. LTEXT "Slow",IDC_STATIC,56,176,20,9
  253. LTEXT "Fast",IDC_STATIC,210,176,16,9
  254. LTEXT "",KBLINK_EDIT,21,174,18,20,NOT WS_GROUP
  255. LTEXT "",KCURSOR_BLINK,29,180,1,8,NOT WS_GROUP
  256. CONTROL "",KCURSOR_SCROLL,TRACKBAR_CLASS,WS_TABSTOP |
  257. TBS_AUTOTICKS,75,176,134,18
  258. END
  259. DLG_KEYBD_POINTER DIALOG DISCARDABLE 0, 0, 252, 218
  260. STYLE DS_MODALFRAME | 4L | WS_POPUP | WS_CAPTION | WS_SYSMENU
  261. CAPTION "Pointer Keys"
  262. FONT 8, "MS Shell Dlg"
  263. BEGIN
  264. GROUPBOX "&Arrow key location",IDC_STATIC,7,25,237,81,WS_DISABLED
  265. CONTROL " &Use arrow keys to move mouse pointer",KCHK_ON,
  266. "Button",BS_AUTOCHECKBOX | WS_DISABLED | WS_TABSTOP,13,7,
  267. 141,14
  268. CONTROL "",KNUM_BMP,"Static",0xe,76,57,35,37
  269. CONTROL " &Number pad",KBTN_NUMBER,"Button",BS_AUTORADIOBUTTON |
  270. WS_DISABLED | WS_TABSTOP,64,42,54,12
  271. CONTROL "",KARROW_BMP,"Static",0xe,142,57,35,37
  272. CONTROL " A&rrow keys",KBTN_ARROW,"Button",BS_AUTORADIOBUTTON |
  273. WS_DISABLED | WS_TABSTOP,129,42,58,12
  274. GROUPBOX "&Pointer speed",IDC_STATIC,7,110,237,67,WS_DISABLED |
  275. WS_GROUP
  276. LTEXT "&Top speed:",IDC_STATIC,13,127,38,10,WS_DISABLED
  277. LTEXT "Low",IDC_STATIC,64,127,15,9,WS_DISABLED
  278. LTEXT "High",IDC_STATIC,207,127,17,8,WS_DISABLED
  279. CONTROL "",KPSPEED_SCROLL,TRACKBAR_CLASS,WS_DISABLED |
  280. WS_TABSTOP | TBS_AUTOTICKS,84,127,123,16
  281. LTEXT "A&cceleration:",IDC_STATIC,13,151,45,9,WS_DISABLED
  282. LTEXT "Slow",IDC_STATIC,64,151,15,9,WS_DISABLED
  283. LTEXT "Fast",IDC_STATIC,207,151,16,8,WS_DISABLED
  284. CONTROL "",KPACC_SCROLL,TRACKBAR_CLASS,WS_DISABLED |
  285. WS_TABSTOP | TBS_AUTOTICKS,83,151,122,16
  286. END
  287. //
  288. // Hardware tab template.
  289. //
  290. DLG_HARDWARE DIALOG DISCARDABLE 0, 0, 252, 218
  291. STYLE DS_MODALFRAME | 4L | WS_POPUP | WS_CAPTION | WS_SYSMENU
  292. CAPTION "Hardware"
  293. FONT 8, "MS Shell Dlg"
  294. BEGIN
  295. END
  296. //
  297. // Version Resources.
  298. //
  299. #ifdef WINNT
  300. #include <winver.h>
  301. #include <ntverp.h>
  302. #else
  303. #include <version.h>
  304. #endif
  305. #define VER_FILETYPE VFT_DLL
  306. #define VER_FILESUBTYPE VFT_UNKNOWN
  307. #define VER_FILEDESCRIPTION_STR "Control Panel DLL"
  308. #define VER_INTERNALNAME_STR "CONTROL"
  309. #define VER_LEGALCOPYRIGHT_YEARS "1991-1998"
  310. #define VER_ORIGINALFILENAME_STR "MAIN.CPL"
  311. #include <common.ver>