winmain.rc
上传用户:hxb_1234
上传日期:2010-03-30
资源大小:8328k
文件大小:7k
源码类别:

VC书籍

开发平台:

Visual C++

  1. //Microsoft Developer Studio generated resource script.
  2. //
  3. #include "resource.h"
  4. #define APSTUDIO_READONLY_SYMBOLS
  5. /////////////////////////////////////////////////////////////////////////////
  6. //
  7. // Generated from the TEXTINCLUDE 2 resource.
  8. //
  9. #define IDC_STATIC -1
  10. #include <windows.h>
  11. /////////////////////////////////////////////////////////////////////////////
  12. #undef APSTUDIO_READONLY_SYMBOLS
  13. /////////////////////////////////////////////////////////////////////////////
  14. // English (U.S.) resources
  15. #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
  16. #ifdef _WIN32
  17. LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
  18. #pragma code_page(1252)
  19. #endif //_WIN32
  20. CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "BumpEarth.manifest"
  21. /////////////////////////////////////////////////////////////////////////////
  22. //
  23. // Icon
  24. //
  25. // Icon with lowest ID value placed first to ensure application icon
  26. // remains consistent on all systems.
  27. IDI_MAIN_ICON           ICON    DISCARDABLE     "......commonDirectX.ico"
  28. #ifdef APSTUDIO_INVOKED
  29. /////////////////////////////////////////////////////////////////////////////
  30. //
  31. // TEXTINCLUDE
  32. //
  33. 1 TEXTINCLUDE DISCARDABLE 
  34. BEGIN
  35.     "resource.h"
  36. END
  37. 2 TEXTINCLUDE DISCARDABLE 
  38. BEGIN
  39.     "#define IDC_STATIC -1rn"
  40.     "#include <windows.h>rn"
  41.     "rn"
  42.     "rn"
  43.     ""
  44. END
  45. 3 TEXTINCLUDE DISCARDABLE 
  46. BEGIN
  47.     "rn"
  48.     ""
  49. END
  50. #endif    // APSTUDIO_INVOKED
  51. /////////////////////////////////////////////////////////////////////////////
  52. //
  53. // Accelerator
  54. //
  55. IDR_MAIN_ACCEL ACCELERATORS DISCARDABLE 
  56. BEGIN
  57.     VK_ESCAPE,      IDM_EXIT,               VIRTKEY, NOINVERT
  58.     VK_F2,          IDM_CHANGEDEVICE,       VIRTKEY, NOINVERT
  59.     VK_RETURN,      IDM_TOGGLESTART,        VIRTKEY, NOINVERT
  60.     VK_RETURN,      IDM_TOGGLEFULLSCREEN,   VIRTKEY, ALT, NOINVERT
  61.     VK_SPACE,       IDM_SINGLESTEP,         VIRTKEY, NOINVERT
  62.     "X",            IDM_EXIT,               VIRTKEY, ALT, NOINVERT
  63. END
  64. /////////////////////////////////////////////////////////////////////////////
  65. //
  66. // DESIGNINFO
  67. //
  68. #ifdef APSTUDIO_INVOKED
  69. GUIDELINES DESIGNINFO DISCARDABLE 
  70. BEGIN
  71.     IDD_SELECTDEVICE, DIALOG
  72.     BEGIN
  73.         LEFTMARGIN, 7
  74.         RIGHTMARGIN, 259
  75.         TOPMARGIN, 7
  76.         BOTTOMMARGIN, 143
  77.     END
  78. END
  79. #endif    // APSTUDIO_INVOKED
  80. /////////////////////////////////////////////////////////////////////////////
  81. //
  82. // Dialog
  83. //
  84. IDD_SELECTDEVICE DIALOG DISCARDABLE  0, 0, 289, 302
  85. STYLE DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
  86. CAPTION "Direct3D Settings"
  87. FONT 8, "MS Shell Dlg"
  88. BEGIN
  89.     GROUPBOX        "Adapter and device",IDC_STATIC,5,5,276,47
  90.     LTEXT           "Display &Adapter:",IDC_STATIC,16,17,98,10,
  91.                     SS_CENTERIMAGE
  92.     COMBOBOX        IDC_ADAPTER_COMBO,124,15,149,100,CBS_DROPDOWNLIST | 
  93.                     WS_VSCROLL | WS_TABSTOP
  94.     LTEXT           "Render &Device:",IDC_STATIC,16,34,98,10,SS_CENTERIMAGE
  95.     COMBOBOX        IDC_DEVICE_COMBO,124,32,149,100,CBS_DROPDOWNLIST | 
  96.                     WS_VSCROLL | WS_TABSTOP
  97.     GROUPBOX        "Display mode settings",IDC_STATIC,5,56,276,98
  98.     CONTROL         "&Windowed",IDC_WINDOW,"Button",BS_AUTORADIOBUTTON | 
  99.                     WS_GROUP | WS_TABSTOP,16,68,98,15
  100.     CONTROL         "&Fullscreen",IDC_FULLSCREEN,"Button",BS_AUTORADIOBUTTON,
  101.                     16,83,98,15
  102.     LTEXT           "Adapter F&ormat:",IDC_STATIC,16,103,98,8
  103.     COMBOBOX        IDC_ADAPTERFORMAT_COMBO,124,101,149,204,CBS_DROPDOWNLIST | 
  104.                     WS_VSCROLL | WS_GROUP | WS_TABSTOP
  105.     LTEXT           "&Resolution:",IDC_STATIC,16,120,98,8
  106.     COMBOBOX        IDC_RESOLUTION_COMBO,124,118,149,204,CBS_DROPDOWNLIST | 
  107.                     WS_VSCROLL | WS_GROUP | WS_TABSTOP
  108.     LTEXT           "R&efresh Rate:",IDC_STATIC,16,137,98,8
  109.     COMBOBOX        IDC_REFRESHRATE_COMBO,124,135,149,204,CBS_DROPDOWNLIST | 
  110.                     WS_VSCROLL | WS_GROUP | WS_TABSTOP
  111.     GROUPBOX        "Device settings",IDC_STATIC,7,158,274,118
  112.     LTEXT           "&Back Buffer Format:",IDC_STATIC,16,173,98,8
  113.     COMBOBOX        IDC_BACKBUFFERFORMAT_COMBO,124,170,149,100,
  114.                     CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
  115.     LTEXT           "De&pth/Stencil Buffer Format:",IDC_STATIC,16,190,98,8
  116.     COMBOBOX        IDC_DEPTHSTENCILBUFFERFORMAT_COMBO,124,187,149,100,
  117.                     CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
  118.     LTEXT           "&Multisample Type:",IDC_STATIC,16,207,98,10,
  119.                     SS_CENTERIMAGE
  120.     COMBOBOX        IDC_MULTISAMPLE_COMBO,124,204,149,100,CBS_DROPDOWNLIST | 
  121.                     WS_VSCROLL | WS_TABSTOP
  122.     LTEXT           "Multisample &Quality:",IDC_STATIC,16,224,98,8
  123.     COMBOBOX        IDC_MULTISAMPLE_QUALITY_COMBO,124,221,149,100,
  124.                     CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
  125.     LTEXT           "&Vertex Processing:",IDC_STATIC,16,241,98,8
  126.     COMBOBOX        IDC_VERTEXPROCESSING_COMBO,124,238,149,100,
  127.                     CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
  128.     LTEXT           "Present &Interval:",IDC_STATIC,16,258,98,8
  129.     COMBOBOX        IDC_PRESENTINTERVAL_COMBO,124,255,149,100,
  130.                     CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
  131.     DEFPUSHBUTTON   "OK",IDOK,86,286,50,14
  132.     PUSHBUTTON      "Cancel",IDCANCEL,152,286,50,14
  133. END
  134. /////////////////////////////////////////////////////////////////////////////
  135. //
  136. // Menu
  137. //
  138. IDR_MENU MENU DISCARDABLE 
  139. BEGIN
  140.     POPUP "&File"
  141.     BEGIN
  142.         MENUITEM "&Go/stoptEnter",             IDM_TOGGLESTART
  143.         MENUITEM "&Single steptSpace",         IDM_SINGLESTEP
  144.         MENUITEM SEPARATOR
  145.         MENUITEM "&Change device...tF2",       IDM_CHANGEDEVICE
  146.         MENUITEM SEPARATOR
  147.         MENUITEM "E&xittESC",                  IDM_EXIT
  148.     END
  149.     POPUP "&Options"
  150.     BEGIN
  151.         MENUITEM "&Texture",                    IDM_TEXTURETOGGLE
  152.         MENUITEM "Toggle &Bumpmap",             IDM_BUMPMAPTOGGLE
  153.         MENUITEM "Toggle &Envmap",              IDM_ENVMAPTOGGLE
  154.         MENUITEM "Toggle &Dispmap",             IDM_DISPMAPTOGGLE
  155.         MENUITEM SEPARATOR
  156.         MENUITEM "Format &1: U8V8L8",           IDM_U8V8L8
  157.         MENUITEM "Format &2: U5V5L6",           IDM_U5V5L6
  158.         MENUITEM "Format &3: U8V8",             IDM_U8V8
  159.         MENUITEM SEPARATOR
  160.         MENUITEM "&Low tesselation",            IDM_LOW_TESSELATION
  161.         MENUITEM "&High tesselation",           IDM_HIGH_TESSELATION
  162.     END
  163. END
  164. IDR_POPUP MENU DISCARDABLE 
  165. BEGIN
  166.     POPUP "Popup"
  167.     BEGIN
  168.         MENUITEM "&Go/stop",                    IDM_TOGGLESTART
  169.         MENUITEM "&Single step",                IDM_SINGLESTEP
  170.         MENUITEM SEPARATOR
  171.         MENUITEM "&Change device...",           IDM_CHANGEDEVICE
  172.         MENUITEM SEPARATOR
  173.         MENUITEM "E&xit",                       IDM_EXIT
  174.     END
  175. END
  176. #endif    // English (U.S.) resources
  177. /////////////////////////////////////////////////////////////////////////////
  178. #ifndef APSTUDIO_INVOKED
  179. /////////////////////////////////////////////////////////////////////////////
  180. //
  181. // Generated from the TEXTINCLUDE 3 resource.
  182. //
  183. /////////////////////////////////////////////////////////////////////////////
  184. #endif    // not APSTUDIO_INVOKED