home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / odtlktv4.zip / ODTLKT / TOOLKIT / IDL / WPCLRPAL.IDL < prev    next >
Text File  |  1995-11-07  |  2KB  |  91 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.     wpSetup: override;
  54.     wpMenuItemHelpSelected: override;
  55.     wpInitData: override;
  56.     somDefaultInit: override;             
  57.     somDestruct:    override;             
  58.  
  59.  
  60.   };
  61. #endif /* __SOMIDL__ */
  62. };
  63.  
  64. interface M_WPColorPalette : M_WPPalette
  65. {
  66.  
  67. #ifdef __SOMIDL__
  68.   implementation {
  69.  
  70.     externalstem = wpclr;
  71.     local;
  72.     externalprefix = clrM_;
  73.     majorversion = 1;
  74.     minorversion = 2;
  75.     filestem = wpclrpal;
  76.     callstyle = oidl;
  77.     dllname = "wpconfig.dll";
  78.  
  79.     wpclsQueryEditString: override;
  80.     wpclsQueryTitle: override;
  81.     wpclsQueryStyle: override;
  82.     wpclsQueryDefaultHelp: override;
  83.     wpclsQueryIconData: override;
  84.     wpclsCreateDefaultTemplates: override;
  85.  
  86.   };
  87. #endif /* __SOMIDL__ */
  88. };
  89.  
  90. #endif  /* wpclrpal_idl */
  91.