home *** CD-ROM | disk | FTP | other *** search
/ The Developer Connection…ice Driver Kit for OS/2 3 / DEV3-D1.ISO / source / wpshidl / idl / wpscheme.idl < prev    next >
Encoding:
Text File  |  1993-11-17  |  2.9 KB  |  122 lines

  1.  
  2. //# This file was generated by the SOM Compiler.
  3. //# FileName: wpscheme.id2.
  4. //# Generated using:
  5. //#     SOM Precompiler somopc: 2.2
  6. //#     SOM Emitter emitidl: 2.7
  7.  
  8. //  Module Header
  9. //
  10. //  Module Name: WPSCHEME
  11. //
  12. //  OS/2 Presentation Manager Workplace class definitions
  13. //
  14. //  Copyright (c) International Business Machines Corporation 1991, 1992
  15. //
  16.  
  17. #ifndef wpscheme_idl
  18. #define wpscheme_idl
  19.  
  20. #include "wppalet.idl"
  21. #include <somcls.idl>
  22.  
  23. interface M_WPSchemePalette;
  24.  
  25. interface WPSchemePalette : WPPalette
  26.  
  27. {
  28.  
  29. #ifdef __SOMIDL__
  30.   implementation {
  31.  
  32.     //# Class Modifiers
  33.     externalstem = wpsch;
  34.     local;
  35.     externalprefix = sch_;
  36.     majorversion = 1;
  37.     minorversion = 2;
  38.     filestem = wpscheme;
  39.     metaclass = M_WPSchemePalette;
  40.     callstyle = oidl;
  41.     dllname = "wpconfig.dll";
  42.  
  43.  
  44.     passthru C_h_after =  ""
  45. "      /*"
  46. "       * Scheme palette entry"
  47. "       */"
  48. ""
  49. "      #define CCHSCHEMENAME 30"
  50. "      #define CCHFONTNAME   60"
  51. ""
  52. "      typedef struct _SCHEME"
  53. "      {"
  54. "         CELL  cell;           /* Size of the data that follows */"
  55. "         ULONG RGBSysColor[SYSCLR_CSYSCOLORS];"
  56. "         ULONG cxBorder;"
  57. "         ULONG cyBorder;"
  58. "         CHAR  szName[CCHSCHEMENAME+1];  /* Name of this scheme */"
  59. "         CHAR  szWindowFont[CCHFONTNAME+1];    /* System font */"
  60. "         CHAR  szTitleFont[CCHFONTNAME+1];     /* System font */"
  61. "         CHAR  szMenuFont[CCHFONTNAME+1];      /* System font */"
  62. "         CHAR  szIconFont[CCHFONTNAME+1];      /* System font */"
  63. "      } SCHEME;"
  64. "      typedef SCHEME *PSCHEME;"
  65. ""
  66. "      /*"
  67. "       *  Macros to extract RGB colors from a given scheme"
  68. "       */"
  69. ""
  70. "      #define SYSCLR_TO_INDEX(s) (s - SYSCLR_HELPHILITE + SYSCLR_CSYSCOLORS - 1)"
  71. ""
  72. "      #define INDEX_TO_SYSCLR(s) (s + SYSCLR_HELPHILITE - SYSCLR_CSYSCOLORS + 1)"
  73. ""
  74. "      #define RGB_FROM_SYSCLR(psch,sysclr)                       \"
  75. "                ( psch ? ( psch->RGBSysColor[ SYSCLR_TO_INDEX(sysclr) ] ) \"
  76. "                       : WinQuerySysColor( HWND_DESKTOP, sysclr, 0 ) )"
  77. ""
  78. "";
  79.  
  80.     //# Method Modifiers
  81.     wpPaintCell: override;
  82.     wpEditCell: override;
  83.     wpSetupCell: override;
  84.     wpDragCell: override;
  85.     wpQueryPaletteHelp: override;
  86.     wpSetup: override;
  87.     wpMenuItemHelpSelected: override;
  88.  
  89.  
  90.   };
  91. #endif /* __SOMIDL__ */
  92. };
  93.  
  94. interface M_WPSchemePalette
  95. {
  96.  
  97. #ifdef __SOMIDL__
  98.   implementation {
  99.  
  100.     //# Class Modifiers
  101.     externalstem = wpsch;
  102.     local;
  103.     externalprefix = schM_;
  104.     majorversion = 1;
  105.     minorversion = 2;
  106.     filestem = wpscheme;
  107.     callstyle = oidl;
  108.     dllname = "wpconfig.dll";
  109.  
  110.     //# Method Modifiers
  111.     wpclsQueryEditString: override;
  112.     wpclsQueryTitle: override;
  113.     wpclsQueryStyle: override;
  114.     wpclsQueryDefaultHelp: override;
  115.     wpclsQueryIconData: override;
  116.  
  117.   };
  118. #endif /* __SOMIDL__ */
  119. };
  120.  
  121. #endif  /* wpscheme_idl */
  122.