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.

91 lines
4.0 KiB

  1. #include "deskperf.h"
  2. //////////////////////////////////////////////////////////////////////////////
  3. //
  4. // Icon
  5. //
  6. IDI_MONITOR ICON DISCARDABLE "MONITOR.ICO"
  7. //////////////////////////////////////////////////////////////////////////////
  8. //
  9. // Dialogs
  10. //
  11. PROP_SHEET_DLG DIALOGEX 20, 20, 252, 175
  12. STYLE DS_MODALFRAME|(DS_SETFONT|DS_FIXEDSYS) | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU | DS_CONTEXTHELP | DS_NOIDLEMSG | DS_3DLOOK
  13. CAPTION "Display Troubleshooter"
  14. FONT 8, "MS Shell Dlg"
  15. BEGIN
  16. ICON IDI_MONITOR,IDI_MONITOR,7,7,18,20,WS_GROUP | SS_REALSIZECONTROL
  17. LTEXT " Are you having problems with your graphics hardware? These settings can help you troubleshoot display-related problems.",IDC_DESCRIPTION,36,6,210,26S
  18. GROUPBOX "Hardware acceleration",IDC_STATIC,7,40,242,118
  19. LTEXT " Manually control the level of acceleration and performance supplied by your graphics hardware. Use the Display Troubleshooter to assist you in making the change.",IDC_STATIC,18,52,230,28
  20. LTEXT "&Hardware acceleration:",IDC_STATIC,18,88,90,9
  21. RTEXT "None",IDC_STATIC,110,88,19,9
  22. LTEXT "Full",IDC_STATIC,218,88,19,9
  23. CONTROL "",IDC_ACCELERATION_SLIDER,TRACKBAR_CLASS,
  24. WS_TABSTOP | WS_GROUP | TBS_AUTOTICKS, 134,86,79,18
  25. LTEXT "",IDC_ACCELERATION_TEXT,18,112,218,28
  26. CONTROL "&Enable write combining",
  27. IDC_ENABLE_USWC, "Button",
  28. BS_AUTOCHECKBOX | WS_TABSTOP, 18, 142, 180, 10
  29. END
  30. //! We should use a common resource in desk.cpl and deskperf.dll
  31. DLG_ASKDYNACDS DIALOGEX DISCARDABLE 132, 64, 233, 115
  32. STYLE DS_MODALFRAME|(DS_SETFONT|DS_FIXEDSYS) | DS_3DLOOK | DS_CENTERMOUSE | WS_POPUP | WS_CAPTION | WS_SYSMENU
  33. CAPTION "Compatibility Warning"
  34. FONT 8, "MS Shell Dlg"
  35. BEGIN
  36. AUTORADIOBUTTON "&Restart the computer with the new display settings?",IDC_NODYNA,
  37. 30,45,190,8,
  38. AUTORADIOBUTTON "&Apply the new display settings without restarting?",IDC_YESDYNA,
  39. 30,57,190,8,
  40. DEFPUSHBUTTON "OK",IDOK,121,70,50,14,WS_TABSTOP|WS_GROUP
  41. PUSHBUTTON "Cancel",IDCANCEL,175,70,50,14,WS_TABSTOP|WS_GROUP
  42. AUTOCHECKBOX "&Don't ask this question again",IDC_SHUTUP,
  43. 7,94,200,13,WS_TABSTOP|WS_GROUP
  44. LTEXT "The settings you have chosen may cause some programs to operate improperly if you do not restart your computer now.\r\n\nWould you like to:",
  45. -1,7,7,219,36
  46. END
  47. //////////////////////////////////////////////////////////////////////////////
  48. //
  49. // Strings
  50. //
  51. STRINGTABLE DISCARDABLE PRELOAD
  52. BEGIN
  53. IDS_PAGE_TITLE "Troubleshoot"
  54. IDS_LEVEL0 "All accelerations are enabled. Use this setting if your computer has no problems. (Recommended)"
  55. IDS_LEVEL1 "Disable cursor and bitmap accelerations. Use this setting to correct problems with the mouse pointer, or to correct problems with corrupt images."
  56. IDS_LEVEL2 "Disable all cursor and advanced drawing accelerations. Use this setting to correct drawing problems."
  57. IDS_LEVEL3 "Disable all DirectDraw and Direct3D accelerations, as well as all cursor and advanced drawing accelerations. Use this setting to correct severe problems with DirectX accelerated applications."
  58. IDS_LEVEL4 "Disable all but basic accelerations. Use this setting to correct more severe problems."
  59. IDS_LEVEL5 "Disable all accelerations. Use this setting only if your computer frequently stops responding or has other severe problems."
  60. IDS_WC_CAPTION "Write combining"
  61. IDS_WC_MESSAGE "You must restart your computer before the new setting will take effect."
  62. IDS_ERR_CAPTION "Unexpected error"
  63. IDS_ERR_MESSAGE "The new settings could not be saved to registry."
  64. END
  65. //////////////////////////////////////////////////////////////////////////////
  66. //
  67. // Version
  68. //
  69. #include <ntverp.h>
  70. #define VER_FILETYPE VFT_DLL
  71. #define VER_FILESUBTYPE VFT2_UNKNOWN
  72. #define VER_FILEDESCRIPTION_STR "Advanced display performance properties"
  73. #define VER_INTERNALNAME_STR "deskperf.dll"
  74. #include "common.ver"