home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / opendc12.zip / od124os2.exe / od12osp1.exe / include / os2 / os2ctlwx.h < prev    next >
C/C++ Source or Header  |  1997-04-02  |  12KB  |  294 lines

  1. /****************************** Module Header ******************************\
  2. *
  3. * Module Name: OS2CTLWX.H
  4. *
  5. * OS/2 Presentation Manager Window Manager include file for WINX applications
  6. * to use the new styles added for the PM controls as well as the dialog id's
  7. * and structures needed for WINX specific dialogs.
  8. *
  9. * Copyright (c) International Business Machines Corporation 1995
  10. *
  11. * ===========================================================================
  12. *
  13. * The folowing symbols are used in this file for conditional sections.
  14. *
  15. *   #define:                To include:
  16. *
  17. *   INCL_WINLISTBOXES       List box controls
  18. *   INCL_WINSTDFIND         standard find/replace dialogs
  19. *   INCL_WINSTDCOLOR        standard color dialog
  20. *   INCL_WINSTDPRINT        standard print dialog
  21. *
  22. \***************************************************************************/
  23.  
  24. #if __IBMC__ || __IBMCPP__
  25.    #pragma info( none )
  26.    #ifndef __CHKHDR__
  27.       #pragma info( none )
  28.    #endif
  29.    #pragma info( restore )
  30. #endif
  31.  
  32. #ifdef __cplusplus
  33.       extern "C" {
  34. #endif
  35.  
  36. #ifdef INCL_WINLISTBOXES
  37.  
  38.       /* List box styles for WinX */
  39.  
  40.       #define LS_TABSTOPS               0x00000040L
  41.       #define LS_OWNERDRAWVARIABLE      0x00000080L
  42.       #define LS_NOSTRINGS              0x00000100L                 /* @136183 */
  43.  
  44.       /* Combobox styles for WinX */
  45.  
  46.       #define CBS_OWNERDRAWVARIABLE     0x00000080L
  47.       #define CBS_NOSTRINGS             0x00000100L       /* @136183 */
  48.       #define CBS_OWNERDRAW             0x00000200L       /* @136247 */
  49.  
  50. #endif
  51.  
  52.  
  53. #ifndef FILEDLG_DID_INCLUDED
  54.    #define FILEDLG_DID_INCLUDED
  55.    /*--------------------------------------------------------------------*/
  56.    /* File Dialog - dialog and control ids (BASE)                        */
  57.    /*--------------------------------------------------------------------*/
  58.    #define   DID_FILE_DIALOG             256
  59.    #define   DID_FILENAME_TXT            257
  60.    #define   DID_FILENAME_ED             258
  61.    #define   DID_DRIVE_TXT               259
  62.    #define   DID_DRIVE_CB                260
  63.    #define   DID_FILTER_TXT              261
  64.    #define   DID_FILTER_CB               262
  65.    #define   DID_DIRECTORY_TXT           263
  66.    #define   DID_DIRECTORY_LB            264
  67.    #define   DID_FILES_TXT               265
  68.    #define   DID_FILES_LB                266
  69.    #define   DID_HELP_PB                 267
  70.    #define   DID_APPLY_PB                268
  71.    #define   DID_READ_ONLY               269
  72.    #define   DID_DIRECTORY_SELECTED      270
  73.    #define   DID_OK_PB                   DID_OK
  74.    #define   DID_CANCEL_PB               DID_CANCEL
  75. #endif /* FILEDLG_DID_INCLUDED */
  76.  
  77.  
  78. #ifndef FONTDLG_DID_INCLUDED
  79.    #define FONTDLG_DID_INCLUDED
  80.    /**********************************************************************/
  81.    /* Font dialog and control id's  (BASE)                               */
  82.    /**********************************************************************/
  83.    #define DID_FONT_DIALOG          300
  84.    #define DID_NAME                 301
  85.    #define DID_STYLE                302
  86.    #define DID_DISPLAY_FILTER       303
  87.    #define DID_PRINTER_FILTER       304
  88.    #define DID_SIZE                 305
  89.    #define DID_SAMPLE               306
  90.    #define DID_OUTLINE              307
  91.    #define DID_UNDERSCORE           308
  92.    #define DID_STRIKEOUT            309
  93.    #define DID_HELP_BUTTON          310
  94.    #define DID_APPLY_BUTTON         311
  95.    #define DID_RESET_BUTTON         312
  96.    #define DID_OK_BUTTON            DID_OK
  97.    #define DID_CANCEL_BUTTON        DID_CANCEL
  98.    #define DID_NAME_PREFIX          313
  99.    #define DID_STYLE_PREFIX         314
  100.    #define DID_SIZE_PREFIX          315
  101.    #define DID_SAMPLE_GROUPBOX      316
  102.    #define DID_EMPHASIS_GROUPBOX    317
  103.    #define DID_FONT_ISO_SUPPORT     318
  104.    #define DID_FONT_ISO_UNTESTED    319
  105. #endif /* FONTDLG_DID_INCLUDED */
  106.  
  107.  
  108. #ifndef INCL_WINDLGFONTWINX_INCLUDED
  109.    #define INCL_WINDLGFONTWINX_INCLUDED
  110.    /**********************************************************************/
  111.    /* Font dialog and control id's  (WINX SPECIFIC)                      */
  112.    /**********************************************************************/
  113.    #define DID_WINXFONT_DIALOG      320
  114.    #define DID_COLOR                321
  115.    #define DID_COLOR_PREFIX         322
  116. #endif /* INCL_WINDLGFONTWINX_INCLUDED */
  117.  
  118.  
  119. #ifndef FINDDLG_DID_INCLUDED
  120.    #define FINDDLG_DID_INCLUDED
  121.    /**********************************************************************/
  122.    /* Find dialog Resource IDs (BASE)                                    */
  123.    /**********************************************************************/
  124.    #define DID_FIND_DIALOG             500
  125.    #define DID_REPLACE_DIALOG          501
  126.  
  127.    #define DID_FIND_REQUIRED           502
  128.    #define DID_FINDNEXT_PUSH           DID_OK
  129.    #define DID_CLOSE_PUSH              DID_CANCEL
  130.    #define DID_FINDWHAT_ENTRY          502
  131.    #define DID_WHOLEWORD_CHECK         503
  132.    #define DID_MATCHCASE_CHECK         504
  133.    #define DID_FORWARD_RADIO           505
  134.    #define DID_BACKWARD_RADIO          506
  135.    #define DID_FINDWHAT_STATIC         507
  136.    #define DID_DIRECTION_GROUP         508
  137.    #define DID_OPTIONS_GROUP           509
  138.    #define DID_HELP_PUSH               510
  139.    #define DID_FIND_REQUIRED_LAST      510
  140.  
  141.    #define DID_REPLACE_REQUIRED        520
  142.    #define DID_REPLACEWITH_ENTRY       520
  143.    #define DID_REPLACE_PUSH            521
  144.    #define DID_REPLACEALL_PUSH         522
  145.    #define DID_REPLACEWITH_STATIC      523
  146.    #define DID_REPLACE_REQUIRED_LAST   523
  147. #endif  /* FINDDLG_DID_INCLUDED */
  148.  
  149.  
  150. #ifndef COLORDLG_DID_INCLUDED
  151.    #define COLORDLG_DID_INCLUDED
  152.    /**********************************************************************/
  153.    /*        C o l o r   D i a l o g / c o n t r o l   I D s  (BASE)     */
  154.    /**********************************************************************/
  155.  
  156.    #define DID_COLORDLG               1027    /* ID of the color dialog */
  157.  
  158.    #define DID_RB_RGB                  515
  159.    #define DID_RB_HSB                  517
  160.    #define DID_RB_CMYK                 518
  161.  
  162.    #define DID_SPBTN1                  511
  163.    #define DID_SPBTN2                  512
  164.    #define DID_SPBTN3                  513
  165.    #define DID_SPBTN4                  514
  166.  
  167.    #define DID_TITLE1                  501
  168.    #define DID_TITLE2                  502
  169.    #define DID_TITLE3                  503
  170.    #define DID_TITLE4                  504
  171.  
  172.    #define DID_COLORCIRCLE             106
  173.    #define DID_PB_VALUES               110
  174.    #define DID_PB_HELP                 113
  175.    #define DID_PB_PURE                 114
  176.    #define DID_PB_UNDO                 115
  177.    #define DID_CUSTOM                  116
  178.    #define DID_VS_BASIC                117
  179.    #define DID_VS_CUSTOM               118
  180.    #define DID_TXT_BASIC               119
  181.    #define DID_TXT_CUSTOM              120
  182.  
  183.    #define DID_IGNORE_ABOVE_THIS       10000
  184.    #define DID_MARKER_FIRST            (DID_IGNORE_ABOVE_THIS+1000)
  185.    #define DID_MRI_FIRST               (DID_IGNORE_ABOVE_THIS+2000)
  186.    #define DID_POSITION_FIRST          (DID_IGNORE_ABOVE_THIS+3000)
  187.  
  188.    #define DID_MK_CENTER               (DID_MARKER_FIRST+1)
  189.    #define DID_MK_UPPERLEFT            (DID_MARKER_FIRST+2)
  190.    #define DID_MK_UPPERRIGHT           (DID_MARKER_FIRST+3)
  191.    #define DID_MK_LOWERLEFT            (DID_MARKER_FIRST+4)
  192.    #define DID_MK_LOWERRIGHT           (DID_MARKER_FIRST+5)
  193.  
  194.    #define DID_MRI_RED                 (DID_MRI_FIRST+1)
  195.    #define DID_MRI_GREEN               (DID_MRI_FIRST+2)
  196.    #define DID_MRI_BLUE                (DID_MRI_FIRST+3)
  197.    #define DID_MRI_HUE                 (DID_MRI_FIRST+4)
  198.    #define DID_MRI_SATURATION          (DID_MRI_FIRST+5)
  199.    #define DID_MRI_BRIGHT              (DID_MRI_FIRST+6)
  200.    #define DID_MRI_CYAN                (DID_MRI_FIRST+7)
  201.    #define DID_MRI_MAGENTA             (DID_MRI_FIRST+8)
  202.    #define DID_MRI_YELLOW              (DID_MRI_FIRST+9)
  203.    #define DID_MRI_BLACK               (DID_MRI_FIRST+10)
  204.    #define DID_MRI_DEF_CUST_COLOR      (DID_MRI_FIRST+11)
  205.  
  206.    /**********************************************************************/
  207.    /* Perfect save color wheel                                           */
  208.    /**********************************************************************/
  209.    #define DID_POS_UNDO1               (DID_POSITION_FIRST+12)
  210.    #define DID_POS_OK1                 0
  211.    #define DID_POS_CANCEL1             0
  212.    #define DID_POS_VALUES1             (DID_POSITION_FIRST+15)
  213.    #define DID_POS_HELP1               (DID_POSITION_FIRST+16)
  214.    #define DID_POS_SETCOLOR1           0
  215.  
  216.    /**********************************************************************/
  217.    /* OK/Cancel color wheel                                              */
  218.    /**********************************************************************/
  219.    #define DID_POS_UNDO2               0
  220.    #define DID_POS_OK2                 (DID_POSITION_FIRST+22)
  221.    #define DID_POS_CANCEL2             (DID_POSITION_FIRST+23)
  222.    #define DID_POS_VALUES2             (DID_POSITION_FIRST+24)
  223.    #define DID_POS_HELP2               (DID_POSITION_FIRST+25)
  224.    #define DID_POS_SETCOLOR2           0
  225.  
  226.    /**********************************************************************/
  227.    /* Perfect save palette                                               */
  228.    /**********************************************************************/
  229.    #define DID_POS_UNDO3               (DID_POSITION_FIRST+32)
  230.    #define DID_POS_OK3                 0
  231.    #define DID_POS_CANCEL3             0
  232.    #define DID_POS_VALUES3             (DID_POSITION_FIRST+34)
  233.    #define DID_POS_HELP3               (DID_POSITION_FIRST+35)
  234.    #define DID_POS_SETCOLOR3           (DID_POSITION_FIRST+36)
  235.  
  236.    /**********************************************************************/
  237.    /* OK/Cancel palette                                                  */
  238.    /**********************************************************************/
  239.    #define DID_POS_UNDO4               0
  240.    #define DID_POS_OK4                 (DID_POSITION_FIRST+32)
  241.    #define DID_POS_CANCEL4             (DID_POSITION_FIRST+33)
  242.    #define DID_POS_VALUES4             (DID_POSITION_FIRST+34)
  243.    #define DID_POS_HELP4               (DID_POSITION_FIRST+35)
  244.    #define DID_POS_SETCOLOR4           (DID_POSITION_FIRST+36)
  245. #endif  /* COLORDLG_DID_INCLUDED */
  246.  
  247.  
  248. #ifndef PRINT_DID_INCLUDED
  249.    #define PRINT_DID_INCLUDED
  250.    /************************************************************************/
  251.    /* PRINT DIALOG RESOURCE IDs                                            */
  252.    /************************************************************************/
  253.    #define DID_PRINT_DIALOG         600
  254.  
  255.    #define DID_PRINT_REQUIRED       601
  256.    #define PRID_PRINT_PUSH          DID_OK
  257.    #define PRID_CANCEL_PUSH         DID_CANCEL
  258.    #define PRID_QUEUE_GROUP         601
  259.    #define PRID_QUEUE_CNR           602
  260.    #define PRID_JOBPROP_PUSH        603
  261.    #define PRID_OPTIONS_GROUP       604
  262.    #define PRID_COPIES_STATIC       605
  263.    #define PRID_COPIES_SPIN         606
  264.    #define PRID_OPTION1_CHECK       607
  265.    #define PRID_OPTION2_CHECK       608
  266.    #define PRID_OPTION3_CHECK       609
  267.    #define PRID_OPTION4_CHECK       610
  268.    #define PRID_RANGE_GROUP         611
  269.    #define PRID_ALL_RADIO           612
  270.    #define PRID_SELECTION_RADIO     613
  271.    #define PRID_PAGES_RADIO         614
  272.    #define PRID_FROM_STATIC         615
  273.    #define PRID_FROM_SPIN           616
  274.    #define PRID_TO_STATIC           617
  275.    #define PRID_TO_SPIN             618
  276.    #define PRID_PREVIEW_PUSH        619
  277.    #define PRID_HELP_PUSH           620
  278.    #define DID_PRINT_REQUIRED_LAST  620
  279.  
  280.    #define DID_PRINT_NO_QUEUES      630
  281. #endif  /* PRINT_DID_INCLUDED */
  282.  
  283. #ifdef __cplusplus
  284.         }
  285. #endif
  286.  
  287. #if __IBMC__ || __IBMCPP__
  288.    #pragma info( none )
  289.    #ifndef __CHKHDR__
  290.       #pragma info( restore )
  291.    #endif
  292.    #pragma info( restore )
  293. #endif
  294.