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