Annotation of mstools/mfc/samples/ctrltest/ctrltest.rc, revision 1.1.1.1

1.1       root        1: // This is a part of the Microsoft Foundation Classes C++ library.
                      2: // Copyright (C) 1992 Microsoft Corporation
                      3: // All rights reserved.
                      4: //
                      5: // This source code is only intended as a supplement to the
                      6: // Microsoft Foundation Classes Reference and Microsoft
                      7: // QuickHelp documentation provided with the library.
                      8: // See these sources for detailed information regarding the
                      9: // Microsoft Foundation Classes product.
                     10: 
                     11: #include "ctrltest.h"
                     12: 
                     13: AFX_IDI_STD_FRAME   ICON    ctrltest.ico
                     14: 
                     15: AFX_IDI_STD_FRAME   MENU
                     16: BEGIN
                     17: 
                     18:        POPUP   "&File"
                     19:        BEGIN
                     20:                MENUITEM    "E&xit",                    IDM_EXIT
                     21:        END
                     22: 
                     23:        POPUP "&Simple"
                     24:        BEGIN
                     25:                MENUITEM    "Test &C++ Derived class...",  IDM_TEST_DERIVED_EDIT
                     26:                MENUITEM    "Test &WNDCLASS Registered...", IDM_TEST_WNDCLASS_EDIT
                     27:                MENUITEM    "Test &Dynamic Subclassed...", IDM_TEST_SUB_EDIT
                     28:        END
                     29: 
                     30:        POPUP "&Pen"
                     31:        BEGIN
                     32:                MENUITEM    "Test &C++ code...",           IDM_TEST_PENEDIT_CODE
                     33:                MENUITEM    "Test from &Template...",      IDM_TEST_PENEDIT_TEMPLATE
                     34:                MENUITEM    "HEdit &Features...",          IDM_TEST_PENEDIT_FEATURES
                     35:        END
                     36: 
                     37:        POPUP "&Custom"
                     38:        BEGIN
                     39:                MENUITEM    "&Bitmap Button 1...",         IDM_TEST_BITMAP_BUTTON1
                     40:                MENUITEM    "Bitmap Button &2...",         IDM_TEST_BITMAP_BUTTON2
                     41:                MENUITEM    SEPARATOR
                     42:                MENUITEM    "Custom &Menu",             IDM_TEST_CUSTOM_MENU
                     43:                        // Custom menu will be changed to a Popup by the initialization code
                     44:                MENUITEM    "Custom &Listbox...",          IDM_TEST_CUSTOM_LIST
                     45:                MENUITEM    SEPARATOR
                     46:                MENUITEM    "&Spin Control...",            IDM_TEST_SPIN_EDIT
                     47:        END
                     48: 
                     49:        POPUP   "&Help"
                     50:        BEGIN
                     51:                MENUITEM    "&About ...",               IDM_ABOUT
                     52:        END
                     53: END
                     54: 
                     55: /////////////////////////////////////////////////////////////////////////////
                     56: 
                     57: IDD_ABOUT DIALOG 34, 22, 144, 75
                     58: STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
                     59: CAPTION "About CtrlTest"
                     60: BEGIN
                     61:        CTEXT           "Microsoft Windows", -1, 0, 5, 144, 8
                     62:        CTEXT           "Microsoft Foundation Classes", -1, 0, 14, 144, 8
                     63:        CTEXT           "Control Test Application", -1, 0, 23, 144, 8
                     64:        CTEXT           "Version 1.0", -1, 0, 36, 144, 8
                     65:        DEFPUSHBUTTON   "OK", IDOK, 56, 53, 32, 14, WS_GROUP
                     66: END
                     67: 
                     68: /////////////////////////////////////////////////////////////////////////////
                     69: // Simple tests
                     70: 
                     71: #include "dertest.dlg"
                     72: #include "wclstest.dlg"
                     73: #include "subtest.dlg"
                     74: 
                     75: /////////////////////////////////////////////////////////////////////////////
                     76: // Pen Tests
                     77: #include "dlgpen.dlg"
                     78: #include "featpen.dlg"
                     79: 
                     80: /////////////////////////////////////////////////////////////////////////////
                     81: // Bitmap button Test 1 - bitmaps for buttons explicitly loaded
                     82: 
                     83: rcinclude bmtest1.dlg
                     84: 
                     85: Image1Up    bitmap      Image1U.bmp
                     86: Image1Down  bitmap      Image1D.bmp
                     87: Image1Focus bitmap      Image1F.bmp
                     88: Image2Up    bitmap      Image2U.bmp
                     89: Image2Down  bitmap      Image2D.bmp
                     90: Image2Focus bitmap      Image2F.bmp
                     91: 
                     92: ////////////////////////////////////////
                     93: // Bitmap button Test 2 - bitmaps automatically loaded
                     94: 
                     95: rcinclude bmtest2.dlg
                     96: 
                     97:        // Text of button is base used for image resource names:
                     98:                // text = "Ok"
                     99:                // normal up image = "OkU"
                    100:                // depressed down image = "OkD"
                    101:                // focused image = "OkF"
                    102: 
                    103: OkU         bitmap      okU.bmp
                    104: OkD         bitmap      okD.bmp
                    105: OkF         bitmap      okF.bmp
                    106: CancelU     bitmap      cancelU.bmp
                    107: CancelD     bitmap      cancelD.bmp
                    108: CancelF     bitmap      cancelF.bmp
                    109: 
                    110: /////////////////////////////////////////////////////////////////////////////
                    111: // New controls
                    112: 
                    113: #include "custlist.dlg"
                    114: #include "spintest.dlg"
                    115: 
                    116: /////////////////////////////////////////////////////////////////////////////

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.