home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ool_main.zip / ool / include / xcolcont.h < prev    next >
C/C++ Source or Header  |  1998-04-13  |  1KB  |  28 lines

  1. #ifndef __OOL_XCOLORCONTROL_H__
  2. #define __OOL_XCOLORCONTROL_H__
  3.  
  4. /*===========================================================================*/
  5. /* OOL ------------------- the Open Object Library ------------------- r 1.0 */
  6. /*===========================================================================*/
  7. /*                              class: XColorControl                         */
  8. /*                       derived from: XControl                              */
  9. /*                        last update: 4/98                                  */
  10. /*                      programmed by: Stefan von Brauk (sbrauk@gwdg.de)     */
  11. /*===========================================================================*/
  12.  
  13. #include "xcontrol.h"
  14. #include "xreslib.h"
  15.  
  16. class _export_ XColorControl: public XControl
  17. {
  18.    friend MRESULT HandleDefault(XWindow * w, ULONG msg, MPARAM mp1, MPARAM mp2, BOOL & handled);
  19.       ULONG color;
  20.       XResourceLibrary lib;
  21.    public:
  22.       XColorControl( const XWindow * owner, const XRect& rect);
  23.       void GetColor( XColor * col) const { col->SetColor(color); }
  24.       void SetColor( const XColor& col) const;
  25.       virtual void ColorSelected( const XColor& newColor) {;}
  26. };
  27.  
  28. #endif