home *** CD-ROM | disk | FTP | other *** search
-
- //# This file was generated by the SOM Compiler.
- //# FileName: wpscheme.id2.
- //# Generated using:
- //# SOM Precompiler somopc: 2.2
- //# SOM Emitter emitidl: 2.7
-
- // Module Header
- //
- // Module Name: WPSCHEME
- //
- // OS/2 Presentation Manager Workplace class definitions
- //
- // Copyright (c) International Business Machines Corporation 1991, 1992
- //
-
- #ifndef wpscheme_idl
- #define wpscheme_idl
-
- #include "wppalet.idl"
- #include <somcls.idl>
-
- interface M_WPSchemePalette;
-
- interface WPSchemePalette : WPPalette
-
- {
-
- #ifdef __SOMIDL__
- implementation {
-
- //# Class Modifiers
- externalstem = wpsch;
- local;
- externalprefix = sch_;
- majorversion = 1;
- minorversion = 2;
- filestem = wpscheme;
- metaclass = M_WPSchemePalette;
- callstyle = oidl;
- dllname = "wpconfig.dll";
-
-
- passthru C_h_after = ""
- " /*"
- " * Scheme palette entry"
- " */"
- ""
- " #define CCHSCHEMENAME 30"
- " #define CCHFONTNAME 60"
- ""
- " typedef struct _SCHEME"
- " {"
- " CELL cell; /* Size of the data that follows */"
- " ULONG RGBSysColor[SYSCLR_CSYSCOLORS];"
- " ULONG cxBorder;"
- " ULONG cyBorder;"
- " CHAR szName[CCHSCHEMENAME+1]; /* Name of this scheme */"
- " CHAR szWindowFont[CCHFONTNAME+1]; /* System font */"
- " CHAR szTitleFont[CCHFONTNAME+1]; /* System font */"
- " CHAR szMenuFont[CCHFONTNAME+1]; /* System font */"
- " CHAR szIconFont[CCHFONTNAME+1]; /* System font */"
- " } SCHEME;"
- " typedef SCHEME *PSCHEME;"
- ""
- " /*"
- " * Macros to extract RGB colors from a given scheme"
- " */"
- ""
- " #define SYSCLR_TO_INDEX(s) (s - SYSCLR_HELPHILITE + SYSCLR_CSYSCOLORS - 1)"
- ""
- " #define INDEX_TO_SYSCLR(s) (s + SYSCLR_HELPHILITE - SYSCLR_CSYSCOLORS + 1)"
- ""
- " #define RGB_FROM_SYSCLR(psch,sysclr) \"
- " ( psch ? ( psch->RGBSysColor[ SYSCLR_TO_INDEX(sysclr) ] ) \"
- " : WinQuerySysColor( HWND_DESKTOP, sysclr, 0 ) )"
- ""
- "";
-
- //# Method Modifiers
- wpPaintCell: override;
- wpEditCell: override;
- wpSetupCell: override;
- wpDragCell: override;
- wpQueryPaletteHelp: override;
- wpSetup: override;
- wpMenuItemHelpSelected: override;
-
-
- };
- #endif /* __SOMIDL__ */
- };
-
- interface M_WPSchemePalette
- {
-
- #ifdef __SOMIDL__
- implementation {
-
- //# Class Modifiers
- externalstem = wpsch;
- local;
- externalprefix = schM_;
- majorversion = 1;
- minorversion = 2;
- filestem = wpscheme;
- callstyle = oidl;
- dllname = "wpconfig.dll";
-
- //# Method Modifiers
- wpclsQueryEditString: override;
- wpclsQueryTitle: override;
- wpclsQueryStyle: override;
- wpclsQueryDefaultHelp: override;
- wpclsQueryIconData: override;
-
- };
- #endif /* __SOMIDL__ */
- };
-
- #endif /* wpscheme_idl */
-