Annotation of pmsdk/samples/petzold/chap11/head.rc, revision 1.1.1.1

1.1       root        1: /*------------------------------
                      2:    HEAD.RC resource script file
                      3:   ------------------------------*/
                      4: 
                      5: #include <os2.h>
                      6: #include "head.h"
                      7: 
                      8: MENU ID_RESOURCE
                      9:      {
                     10:      SUBMENU "~File",              IDM_FILE
                     11:           {
                     12:           MENUITEM "~Open...",          IDM_OPEN
                     13:           MENUITEM SEPARATOR
                     14:           MENUITEM "A~bout Head...",    IDM_ABOUT
                     15:           }
                     16:      }
                     17: 
                     18: DLGTEMPLATE IDD_ABOUT
                     19:      {
                     20:      DIALOG "", 0, 10, 60, 160, 100, FS_DLGBORDER
                     21:           {
                     22:           CTEXT "Head"                                -1,  10, 72, 140, 10
                     23:           CTEXT "File Head Display"                   -1,  10, 46, 140, 10
                     24:           CTEXT "Copyright (C) Charles Petzold, 1988" -1,  10, 30, 140, 10
                     25:           DEFPUSHBUTTON "OK"            DID_OK,  64,  8,  32, 14, WS_GROUP
                     26:           }
                     27:      }
                     28: 
                     29: DLGTEMPLATE IDD_OPEN
                     30:    {
                     31:    DIALOG "", 0, 8, 8, 180, 170, FS_DLGBORDER
                     32:       {
                     33:       CTEXT "Open File"                                   -1,  10, 154, 160, 10
                     34:       LTEXT "Use mouse to choose file, or type filename." -1,   4, 138, 172, 10
                     35:       LTEXT "Current Directory...:"                       -1,   4, 126,  84, 10
                     36:       LTEXT ""                       IDD_PATH,      90, 126, 84, 10
                     37:       LTEXT "Filename............."  -1,             4, 110, 84, 10
                     38:       EDITTEXT ""                    IDD_FILEEDIT,  90, 110, 84, 10, ES_MARGIN
                     39:       CTEXT "Directories"            -1,            10,  96, 70, 10
                     40:       CTEXT "Files"                  -1,           100,  96, 70, 10 
                     41:       LISTBOX                        IDD_DIRLIST,   10,  30, 70, 64
                     42:       LISTBOX                        IDD_FILELIST, 100,  30, 70, 64
                     43:       DEFPUSHBUTTON "Open"           DID_OK,        20,   8, 48, 14, WS_GROUP
                     44:       PUSHBUTTON "Esc=Cancel"        DID_CANCEL,   110,   8, 48, 14, WS_GROUP
                     45:       }
                     46:    }

unix.superglobalmegacorp.com

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