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