home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / VSCPPv8.zip / VACPP / IBMCPP / samples / TOOLKIT / MM / DUET1 / DUET1.DLG < prev    next >
Text File  |  1994-11-17  |  3KB  |  74 lines

  1. /*************************************************************************
  2.  * File Name    :  duet1.dlg
  3.  *
  4.  * Description  :  This file holds the dialog window used by the Duet
  5.  *                 Player 1 sample program.
  6.  *
  7.  * Concepts     :  See this sample program's C source file.
  8.  *                 The WS_ANIMATE frame style allows this window to
  9.  *                 respond to system sounds.
  10.  *
  11.  * MMPM/2 API's :  None.
  12.  *
  13.  * Required
  14.  *    Files     :  See this sample program's C source file.
  15.  *
  16.  * Copyright (C) IBM 1991, 1992, 1993
  17.  ***************************************************************************/
  18. #define  INCL_CIRCULARSLIDER  /* need this for the circular slider control */
  19. #define  INCL_GRAPHICBUTTON   /* need this for the graphic buttons control */
  20.  
  21. #include <sw.h>
  22.  
  23. DLGTEMPLATE ID_DLG_MAIN LOADONCALL MOVEABLE DISCARDABLE
  24. BEGIN
  25.    DIALOG "",              /* window title will be set explicitly */
  26.           ID_DLG_MAIN,
  27.           40, 40,          /* x, y position  */
  28.           257, 120,        /* width, height  */
  29.           FS_NOBYTEALIGN | FS_SIZEBORDER | WS_VISIBLE | WS_SAVEBITS | WS_ANIMATE,
  30.           FCF_SYSMENU | FCF_TITLEBAR | FCF_MINBUTTON | FCF_NOBYTEALIGN |
  31.           FCF_TASKLIST | FCF_VERTSCROLL | FCF_HORZSCROLL | FCF_ICON
  32.  
  33.    BEGIN
  34.       CONTROL "Duet", ID_TEXT_DUET, 9, 105, 30, 8, WC_STATIC,
  35.                   SS_TEXT | DT_LEFT | DT_TOP | WS_VISIBLE
  36.  
  37.       CONTROL "", ID_LB_DUET, 9, 28, 100, 72, WC_LISTBOX,
  38.                   WS_TABSTOP | WS_VISIBLE | WS_GROUP
  39.  
  40.       CONTROL "", ID_GPB_PLAY, 200, 85, 45, 6, WC_GRAPHICBUTTON,
  41.                   GBS_ANIMATION | GBS_3D_TEXTRAISED | WS_GROUP |
  42.                   WS_TABSTOP | WS_VISIBLE
  43.               CTLDATA GB_RESOURCE, "", 5,          /* Number of bitmaps */
  44.                                            ID_BMP_PLAY0,
  45.                                            ID_BMP_PLAY1,
  46.                                            ID_BMP_PLAY2,
  47.                                            ID_BMP_PLAY3,
  48.                                            ID_BMP_PLAY4
  49.  
  50.       CONTROL "", ID_GPB_PAUSE, 163, 85, 23, 6, WC_GRAPHICBUTTON,
  51.                   GBS_3D_TEXTRAISED | WS_VISIBLE
  52.               CTLDATA GB_RESOURCE, "", 1, ID_BMP_PAUSE
  53.  
  54.       CONTROL "", ID_GPB_STOP, 125, 85, 23, 6, WC_GRAPHICBUTTON,
  55.                   GBS_3D_TEXTRAISED | WS_VISIBLE
  56.               CTLDATA GB_RESOURCE, "", 1, ID_BMP_STOP
  57.  
  58.  
  59.       CONTROL "Volume", ID_TEXT_VOLUME, 165, 70, 36, 8, WC_STATIC,
  60.                   SS_TEXT | DT_LEFT | DT_TOP | WS_GROUP | WS_VISIBLE
  61.  
  62.       CONTROL "", ID_SL_VOLUME, 110, 21, 140, 47, WC_CIRCULARSLIDER,
  63.                   WS_TABSTOP | WS_VISIBLE | CSS_NOTEXT
  64.  
  65.  
  66.       CONTROL "Cancel", ID_PB_CANCEL, 9, 8, 38, 13, WC_BUTTON,
  67.                   BS_PUSHBUTTON | WS_GROUP | WS_TABSTOP | WS_VISIBLE
  68.  
  69.       CONTROL "Help", ID_PB_HELP, 54, 8, 38, 13, WC_BUTTON,
  70.                   BS_PUSHBUTTON | BS_HELP | WS_VISIBLE
  71.    END
  72. END
  73.  
  74.