home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / idl / wpclrpal.idl < prev    next >
Text File  |  1999-03-15  |  2KB  |  92 lines

  1.  
  2. //  Module Header
  3. //
  4. //  Module Name: WPCLRPAL
  5. //
  6. //  OS/2 Presentation Manager Workplace class definitions
  7. //
  8. //  Copyright (c) International Business Machines Corporation 1991, 1992
  9. //
  10.  
  11. #ifndef wpclrpal_idl
  12. #define wpclrpal_idl
  13.  
  14. #include "wppalet.idl"
  15. #include <somcls.idl>
  16.  
  17. interface M_WPColorPalette;
  18.  
  19. interface WPColorPalette : WPPalette
  20.  
  21. {
  22.  
  23. #ifdef __SOMIDL__
  24.   implementation {
  25.  
  26.     externalstem = wpclr;
  27.     local;
  28.     externalprefix = clr_;
  29.     majorversion = 1;
  30.     minorversion = 2;
  31.     filestem = wpclrpal;
  32.     metaclass = M_WPColorPalette;
  33.     callstyle = oidl;
  34.     dllname = "wpconfig.dll";
  35.  
  36.     passthru C_h_after =     ""
  37.  
  38. "      /* Paintpot structure */"
  39. ""
  40. "      typedef struct _PAINTPOT"
  41. "      {"
  42. "         CELL        cell;     /* Size of the data that follows */"
  43. "         ULONG       ulRGB;    /* Color of this paintpot */"
  44. "      } PAINTPOT;"
  45. "      typedef PAINTPOT *PPAINTPOT;"
  46. "";
  47.  
  48.  
  49.     wpPaintCell: override;
  50.     wpEditCell: override;
  51.     wpDragCell: override;
  52.     wpQueryPaletteHelp: override;
  53.     wpSetupOnce: override;                                                      
  54.     wpSetup: override;
  55.     wpMenuItemHelpSelected: override;
  56.     wpInitData: override;
  57.     somDefaultInit: override;             
  58.     somDestruct:    override;             
  59.     wpSelectCell: override;
  60.  
  61.   };
  62. #endif /* __SOMIDL__ */
  63. };
  64.  
  65. interface M_WPColorPalette : M_WPPalette
  66. {
  67.  
  68. #ifdef __SOMIDL__
  69.   implementation {
  70.  
  71.     externalstem = wpclr;
  72.     local;
  73.     externalprefix = clrM_;
  74.     majorversion = 1;
  75.     minorversion = 2;
  76.     filestem = wpclrpal;
  77.     callstyle = oidl;
  78.     dllname = "wpconfig.dll";
  79.  
  80.     wpclsQueryEditString: override;
  81.     wpclsQueryTitle: override;
  82.     wpclsQueryStyle: override;
  83.     wpclsQueryDefaultHelp: override;
  84.     wpclsQueryIconData: override;
  85.     wpclsCreateDefaultTemplates: override;
  86.  
  87.   };
  88. #endif /* __SOMIDL__ */
  89. };
  90.  
  91. #endif  /* wpclrpal_idl */
  92.