home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ool.zip / OOL / include / xcontrol.h < prev    next >
Text File  |  1997-02-27  |  2KB  |  57 lines

  1. #ifndef __OOL_XCONTROL_H__
  2. #define __OOL_XCONTROL_H__
  3.  
  4. /*===========================================================================*/
  5. /* OOL ------------------- the Open Object Library ------------- OS/2 Beta 1 */
  6. /*===========================================================================*/
  7. /*                              class: XControl                              */
  8. /*                       derived from: XWindow                               */
  9. /*                        last update: 12/96                                 */
  10. /*                      programmed by: Stefan von Brauk (sbrauk@gwdg.de)     */
  11. /*===========================================================================*/
  12.  
  13.  
  14. #include "xwindow.h"
  15.  
  16. class XRect;
  17. class XControlEvent;
  18.  
  19. #ifdef OOL_FOR_OS2_X86
  20.     typedef struct _FORECOLORPARAM
  21.     {
  22.         ULONG id;
  23.         ULONG cb;
  24.         ULONG ulColor;
  25.     }   FORECOLORPARAM;
  26.  
  27.     typedef struct _FONTPARAM
  28.     {
  29.         ULONG id;
  30.         ULONG cb;
  31.         CHAR szFontNameSize[20];
  32.     }   FONTPARAM;
  33.  
  34.  
  35.     typedef struct _PRES                    // pres. params
  36.     {
  37.         ULONG cb;                    // length
  38.         FORECOLORPARAM fcparam;        // foreground color
  39.         FONTPARAM fntparam;            // font name & size
  40.     }   PRES;
  41. #endif
  42.  
  43.  
  44. class _export_ XControl: public XWindow{
  45.       friend MRESULT EXPENTRY ControlProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
  46.    protected:
  47.       PFNWP oldfunc;
  48.    protected:
  49.       XControl ( const HWND hwnd );
  50.    public:
  51.       XControl( const XRect * rec, const ULONG style, const XWindow * ow, const char * title = "", const PSZ cl = 0, const USHORT id = 0, const char * font = NULL);
  52.       virtual ~XControl() {;}
  53. };
  54.  
  55.  
  56. #endif
  57.