File:  [OS/2 SDKs] / pmsdk / samples / petzold / chap11 / head.rc
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Thu Aug 9 12:28:12 2018 UTC (7 years, 9 months ago) by root
Branches: msft, MAIN
CVS tags: pmsdk-1988, HEAD
Microsoft OS/2 SDK PM 08-08-1988

/*------------------------------
   HEAD.RC resource script file
  ------------------------------*/

#include <os2.h>
#include "head.h"

MENU ID_RESOURCE
     {
     SUBMENU "~File",              IDM_FILE
          {
          MENUITEM "~Open...",          IDM_OPEN
          MENUITEM SEPARATOR
          MENUITEM "A~bout Head...",    IDM_ABOUT
          }
     }

DLGTEMPLATE IDD_ABOUT
     {
     DIALOG "", 0, 10, 60, 160, 100, FS_DLGBORDER
          {
          CTEXT "Head"                                -1,  10, 72, 140, 10
          CTEXT "File Head Display"                   -1,  10, 46, 140, 10
          CTEXT "Copyright (C) Charles Petzold, 1988" -1,  10, 30, 140, 10
          DEFPUSHBUTTON "OK"            DID_OK,  64,  8,  32, 14, WS_GROUP
          }
     }

DLGTEMPLATE IDD_OPEN
   {
   DIALOG "", 0, 8, 8, 180, 170, FS_DLGBORDER
      {
      CTEXT "Open File"                                   -1,  10, 154, 160, 10
      LTEXT "Use mouse to choose file, or type filename." -1,   4, 138, 172, 10
      LTEXT "Current Directory...:"                       -1,   4, 126,  84, 10
      LTEXT ""                       IDD_PATH,      90, 126, 84, 10
      LTEXT "Filename............."  -1,             4, 110, 84, 10
      EDITTEXT ""                    IDD_FILEEDIT,  90, 110, 84, 10, ES_MARGIN
      CTEXT "Directories"            -1,            10,  96, 70, 10
      CTEXT "Files"                  -1,           100,  96, 70, 10 
      LISTBOX                        IDD_DIRLIST,   10,  30, 70, 64
      LISTBOX                        IDD_FILELIST, 100,  30, 70, 64
      DEFPUSHBUTTON "Open"           DID_OK,        20,   8, 48, 14, WS_GROUP
      PUSHBUTTON "Esc=Cancel"        DID_CANCEL,   110,   8, 48, 14, WS_GROUP
      }
   }

unix.superglobalmegacorp.com

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