home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / general / ctrltest / ctrltest.rc < prev    next >
Text File  |  1998-03-26  |  10KB  |  302 lines

  1. //Microsoft Developer Studio generated resource script.
  2. //
  3. #include "resource.h"
  4.  
  5. #define APSTUDIO_READONLY_SYMBOLS
  6. /////////////////////////////////////////////////////////////////////////////
  7. //
  8. // Generated from the TEXTINCLUDE 2 resource.
  9. //
  10. #include "afxres.h"
  11. #include "res\otherids.h"
  12.  
  13. /////////////////////////////////////////////////////////////////////////////
  14. #undef APSTUDIO_READONLY_SYMBOLS
  15.  
  16. /////////////////////////////////////////////////////////////////////////////
  17. // English (U.S.) resources
  18.  
  19. #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_enu)
  20. #ifdef _WIN32
  21. LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
  22. #pragma code_page(1252)
  23. #endif //_WIN32
  24.  
  25. /////////////////////////////////////////////////////////////////////////////
  26. //
  27. // Icon
  28. //
  29.  
  30. AFX_IDI_STD_FRAME       ICON    DISCARDABLE     "RES\\CTRLTEST.ICO"
  31.  
  32. /////////////////////////////////////////////////////////////////////////////
  33. //
  34. // Menu
  35. //
  36.  
  37. AFX_IDI_STD_FRAME MENU DISCARDABLE
  38. BEGIN
  39.     POPUP "&File"
  40.     BEGIN
  41.         MENUITEM "E&xit",                       ID_APP_EXIT
  42.     END
  43.     POPUP "&Simple"
  44.     BEGIN
  45.         MENUITEM "Test &C++ Derived class...",  IDM_TEST_DERIVED_EDIT
  46.         MENUITEM "Test &WNDCLASS Registered...", IDM_TEST_WNDCLASS_EDIT
  47.         MENUITEM "Test &Dynamic Subclassed...", IDM_TEST_SUB_EDIT
  48.     END
  49.     POPUP "&Custom"
  50.     BEGIN
  51.         MENUITEM "&Bitmap Button 1...",         IDM_TEST_BITMAP_BUTTON1
  52.         MENUITEM "Bitmap Button &2...",         IDM_TEST_BITMAP_BUTTON2
  53.         MENUITEM "Bitmap Button &3...",         IDM_TEST_BITMAP_BUTTON3
  54.         MENUITEM SEPARATOR
  55.         MENUITEM "Custom &Menu",                IDM_TEST_CUSTOM_MENU
  56.         MENUITEM "Custom &Listbox...",          IDM_TEST_CUSTOM_LIST
  57.         MENUITEM SEPARATOR
  58.         MENUITEM "&Spin Control...",            IDM_TEST_SPIN_EDIT
  59.     END
  60.     POPUP "&Help"
  61.     BEGIN
  62.         MENUITEM "&About ...",                  ID_APP_ABOUT
  63.     END
  64. END
  65.  
  66.  
  67. /////////////////////////////////////////////////////////////////////////////
  68. //
  69. // Dialog
  70. //
  71.  
  72. ABOUTBOX DIALOG DISCARDABLE  34, 22, 144, 75
  73. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  74. CAPTION "About CtrlTest"
  75. FONT 8, "MS Sans Serif"
  76. BEGIN
  77.     CTEXT           "Microsoft Windows",IDC_STATIC,0,5,144,8
  78.     CTEXT           "Microsoft Foundation Classes",IDC_STATIC,0,14,144,8
  79.     CTEXT           "Control Test Application",IDC_STATIC,0,23,144,8
  80.     CTEXT           "Version 1.1 (MFC V4.0)",IDC_STATIC,0,36,144,8
  81.     DEFPUSHBUTTON   "OK",IDOK,56,53,32,14,WS_GROUP
  82. END
  83.  
  84. IDD_DERIVED_EDIT DIALOG DISCARDABLE  16, 16, 214, 199
  85. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  86. CAPTION "Using C++ Derived Class"
  87. FONT 8, "MS Sans Serif"
  88. BEGIN
  89.     DEFPUSHBUTTON   "Done",IDOK,167,7,37,14
  90. END
  91.  
  92. IDD_SUB_EDIT DIALOG DISCARDABLE  16, 16, 195, 98
  93. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  94. CAPTION "Using Dynamic Subclassed edit controls"
  95. FONT 8, "MS Sans Serif"
  96. BEGIN
  97.     LTEXT           "Letters:",IDC_STATIC,8,9,44,8
  98.     EDITTEXT        IDC_EDIT1,61,7,79,12
  99.     LTEXT           "Numbers:",IDC_STATIC,8,29,44,8
  100.     EDITTEXT        IDC_EDIT2,61,28,79,12
  101.     LTEXT           "Either:",IDC_STATIC,8,49,44,8
  102.     EDITTEXT        IDC_EDIT3,61,47,79,12
  103.     LTEXT           "Anything:",IDC_STATIC,8,69,44,8
  104.     EDITTEXT        IDC_EDIT4,61,68,79,12
  105.     DEFPUSHBUTTON   "Done",IDOK,151,7,37,14
  106. END
  107.  
  108. IDD_SUB_PENEDIT DIALOG DISCARDABLE  16, 16, 195, 98
  109. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  110. CAPTION "Using template Pen Edit controls"
  111. FONT 8, "MS Sans Serif"
  112. BEGIN
  113.     LTEXT           "Letters:",IDC_STATIC,8,9,43,8
  114.     CONTROL         "ALC<3>",IDC_EDIT1,"hedit",WS_BORDER | WS_TABSTOP,61,7,
  115.                     79,12
  116.     LTEXT           "Numbers:",IDC_STATIC,8,29,43,8
  117.     CONTROL         "ALC<4>",IDC_EDIT2,"hedit",WS_BORDER | WS_TABSTOP,61,27,
  118.                     79,12
  119.     LTEXT           "Letters:",IDC_STATIC,10,50,43,8
  120.     CONTROL         "ALC<3>",IDC_EDIT3,"bedit",WS_BORDER | WS_TABSTOP,57,42,
  121.                     86,19
  122.     LTEXT           "Numbers:",IDC_STATIC,10,72,43,8
  123.     CONTROL         "ALC<4>",IDC_EDIT4,"bedit",WS_BORDER | WS_TABSTOP,57,64,
  124.                     86,19
  125.     DEFPUSHBUTTON   "Done",IDOK,151,6,39,14
  126. END
  127.  
  128. IDM_TEST_BITMAP_BUTTON1 DIALOG DISCARDABLE  55, 38, 142, 74
  129. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION
  130. CAPTION "OwnerBtn Test1"
  131. FONT 8, "MS Sans Serif"
  132. BEGIN
  133.     CTEXT           "Example Dialog with",IDC_STATIC,7,4,135,8
  134.     CTEXT           "self-drawing bitmap buttons",IDC_STATIC,7,16,135,8
  135.     CONTROL         "",IDOK,"button",BS_OWNERDRAW | WS_TABSTOP,23,38,40,30
  136.     CONTROL         "",IDCANCEL,"button",BS_OWNERDRAW | WS_TABSTOP,79,38,40,
  137.                     30
  138. END
  139.  
  140. IDM_TEST_BITMAP_BUTTON2 DIALOG DISCARDABLE  55, 38, 217, 74
  141. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION
  142. CAPTION "OwnerBtn Test2"
  143. FONT 8, "MS Sans Serif"
  144. BEGIN
  145.     CTEXT           "Example Dialog with",IDC_STATIC,9,4,200,8
  146.     CTEXT           "auto-load self-drawing bitmap buttons",IDC_STATIC,9,12,
  147.                     200,8
  148.     CTEXT           "(the easy way to do Basic Custom Controls)",IDC_STATIC,
  149.                     9,20,200,8
  150.     CONTROL         "OK",IDOK,"button",BS_OWNERDRAW | WS_TABSTOP,54,39,40,30
  151.     CONTROL         "CANCEL",IDCANCEL,"button",BS_OWNERDRAW | WS_TABSTOP,110,
  152.                     39,40,30
  153. END
  154.  
  155. IDM_TEST_BITMAP_BUTTON3 DIALOG DISCARDABLE  55, 38, 150, 57
  156. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION
  157. CAPTION "OwnerBtn Test3"
  158. FONT 8, "MS Sans Serif"
  159. BEGIN
  160.     CONTROL         "prev",ID_PREV,"button",BS_OWNERDRAW | WS_TABSTOP,5,15,
  161.                     20,20
  162.     CTEXT           "?",IDC_NUMBEROUT,32,20,10,8
  163.     CONTROL         "next",ID_NEXT,"button",BS_OWNERDRAW | WS_TABSTOP,49,14,
  164.                     20,30
  165.     CONTROL         "OK",IDOK,"button",BS_OWNERDRAW | WS_TABSTOP,93,14,40,30
  166. END
  167.  
  168. IDD_CUSTOM_LIST DIALOG DISCARDABLE  16, 16, 173, 87
  169. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  170. CAPTION "Sample Dialog with custom listbox"
  171. FONT 8, "MS Sans Serif"
  172. BEGIN
  173.     LTEXT           "Please Pick a &Color:",IDC_STATIC,8,9,104,8
  174.     LISTBOX         IDC_LISTBOX1,10,25,103,52,LBS_SORT |
  175.                     LBS_OWNERDRAWVARIABLE | WS_VSCROLL | WS_TABSTOP
  176.     DEFPUSHBUTTON   "OK",IDOK,134,6,33,14
  177.     PUSHBUTTON      "Cancel",IDCANCEL,134,23,33,14
  178. END
  179.  
  180. IDD_WNDCLASS_EDIT DIALOG DISCARDABLE  0, 0, 202, 93
  181. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  182. CAPTION "Using wndclass registered controls"
  183. FONT 8, "MS Sans Serif"
  184. BEGIN
  185.     LTEXT           "Letters:",IDC_STATIC,7,14,43,8
  186.     LTEXT           "Numbers:",IDC_STATIC,8,32,43,8
  187.     LTEXT           "Either:",IDC_STATIC,8,50,43,8
  188.     LTEXT           "Anything:",IDC_STATIC,8,68,43,8
  189.     DEFPUSHBUTTON   "Done",IDOK,151,7,41,14
  190.     CONTROL         "",IDC_EDIT1,"paredit",WS_BORDER | WS_TABSTOP | 0x2,55,8,
  191.                     79,14
  192.     CONTROL         "",IDC_EDIT2,"paredit",WS_BORDER | WS_TABSTOP | 0x1,55,
  193.                     26,79,14
  194.     CONTROL         "",IDC_EDIT3,"paredit",WS_BORDER | WS_TABSTOP | 0x3,55,
  195.                     44,79,14
  196.     CONTROL         "",IDC_EDIT4,"paredit",WS_BORDER | WS_TABSTOP | 0xffff,
  197.                     55,62,80,14
  198. END
  199.  
  200.  
  201. /////////////////////////////////////////////////////////////////////////////
  202. //
  203. // Bitmap
  204. //
  205.  
  206. IMAGE1UP                BITMAP  MOVEABLE PURE   "RES\\IMAGE1U.BMP"
  207. IMAGE1DOWN              BITMAP  MOVEABLE PURE   "RES\\IMAGE1D.BMP"
  208. IMAGE1FOCUS             BITMAP  MOVEABLE PURE   "RES\\IMAGE1F.BMP"
  209. IMAGE2UP                BITMAP  MOVEABLE PURE   "RES\\IMAGE2U.BMP"
  210. IMAGE2DOWN              BITMAP  MOVEABLE PURE   "RES\\IMAGE2D.BMP"
  211. IMAGE2FOCUS             BITMAP  MOVEABLE PURE   "RES\\IMAGE2F.BMP"
  212. OKU                     BITMAP  MOVEABLE PURE   "RES\\OKU.BMP"
  213. OKD                     BITMAP  MOVEABLE PURE   "RES\\OKD.BMP"
  214. OKF                     BITMAP  MOVEABLE PURE   "RES\\OKF.BMP"
  215. CANCELU                 BITMAP  MOVEABLE PURE   "RES\\CANCELU.BMP"
  216. CANCELD                 BITMAP  MOVEABLE PURE   "RES\\CANCELD.BMP"
  217. CANCELF                 BITMAP  MOVEABLE PURE   "RES\\CANCELF.BMP"
  218. NEXTU                   BITMAP  MOVEABLE PURE   "RES\\NEXTU.BMP"
  219. NEXTD                   BITMAP  MOVEABLE PURE   "RES\\NEXTD.BMP"
  220. NEXTF                   BITMAP  MOVEABLE PURE   "RES\\NEXTF.BMP"
  221. NEXTX                   BITMAP  MOVEABLE PURE   "RES\\NEXTX.BMP"
  222. PREVU                   BITMAP  MOVEABLE PURE   "RES\\PREVU.BMP"
  223. PREVD                   BITMAP  MOVEABLE PURE   "RES\\PREVD.BMP"
  224. PREVF                   BITMAP  MOVEABLE PURE   "RES\\PREVF.BMP"
  225. PREVX                   BITMAP  MOVEABLE PURE   "RES\\PREVX.BMP"
  226.  
  227. #ifdef APSTUDIO_INVOKED
  228. /////////////////////////////////////////////////////////////////////////////
  229. //
  230. // TEXTINCLUDE
  231. //
  232.  
  233. 1 TEXTINCLUDE DISCARDABLE
  234. BEGIN
  235.     "resource.h\0"
  236. END
  237.  
  238. 2 TEXTINCLUDE DISCARDABLE
  239. BEGIN
  240.     "#include ""afxres.h""\r\n"
  241.     "#include ""res\\otherids.h""\r\n"
  242.     "\0"
  243. END
  244.  
  245. 3 TEXTINCLUDE DISCARDABLE
  246. BEGIN
  247.     "#include ""res\\ctrltest.rc2""\r\n"
  248.     "\0"
  249. END
  250.  
  251. #endif    // APSTUDIO_INVOKED
  252.  
  253.  
  254. /////////////////////////////////////////////////////////////////////////////
  255. //
  256. // String Table
  257. //
  258.  
  259. STRINGTABLE DISCARDABLE
  260. BEGIN
  261.     IDS_YOU_CHOSE           "You chose %d"
  262.     IDS_PLEASE_SELECT_COLOR "Please select a color"
  263. END
  264.  
  265. STRINGTABLE DISCARDABLE
  266. BEGIN
  267.     AFX_IDS_DESKACCESSORY   "Opens the selected item"
  268. END
  269.  
  270. STRINGTABLE DISCARDABLE
  271. BEGIN
  272.     IDS_COLOR_NAME_FIRST    "black"
  273.     IDS_COLOR_NAME_BLUE     "blue"
  274.     IDS_COLOR_NAME_GREEN    "green"
  275.     IDS_COLOR_NAME_CYAN     "cyan"
  276.     IDS_COLOR_NAME_RED      "red"
  277.     IDS_COLOR_NAME_MAGENTA  "magenta"
  278.     IDS_COLOR_NAME_YELLOW   "yellow"
  279.     IDS_COLOR_NAME_WHITE    "white"
  280.     IDS_YOU_PICKED_COLOR    "You picked %s"
  281.     IDS_MENU_TEST           "Menu Test"
  282.     IDS_ILLEGAL_VALUE       "illegal value"
  283.     IDS_MUSCRL32_DLL_REQUIRED "MUSCRL32.DLL is required to run this test"
  284.     IDS_WNDCLASS_NOT_REGISTERED
  285.                             "Failed to registered WNDCLASS for parsed control"
  286. END
  287.  
  288. #endif    // English (U.S.) resources
  289. /////////////////////////////////////////////////////////////////////////////
  290.  
  291.  
  292.  
  293. #ifndef APSTUDIO_INVOKED
  294. /////////////////////////////////////////////////////////////////////////////
  295. //
  296. // Generated from the TEXTINCLUDE 3 resource.
  297. //
  298. #include "res\ctrltest.rc2"
  299.  
  300. /////////////////////////////////////////////////////////////////////////////
  301. #endif    // not APSTUDIO_INVOKED
  302.