home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1998 May / Pcwk5b98.iso / Borland / Cplus45 / BC45 / PAINT.PAK / DIBATTR.H < prev    next >
C/C++ Source or Header  |  1995-08-29  |  809b  |  31 lines

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows - (C) Copyright 1991, 1993 by Borland International
  3. //   Example paint program dib attribute dialog
  4. //----------------------------------------------------------------------------
  5. #ifndef __DIBATTR_H
  6. #define __DIBATTR_H
  7.  
  8. #include <owl\dialog.h>
  9.  
  10. class TDibAttrDialog : public TDialog {
  11.   public:
  12.     TDibAttrDialog(TWindow* parent, int& width, int& height, int& colors,
  13.                    TModule* module = 0);
  14.  
  15.   private:
  16.     void SetupWindow();
  17.     BOOL CanClose();
  18.  
  19.     void Bn2Color() {Colors = 2;}
  20.     void Bn16Color() {Colors = 16;}
  21.     void Bn256Color() {Colors = 256;}
  22.  
  23.     int& Width;
  24.     int& Height;
  25.     int& Colors;
  26.  
  27.   DECLARE_RESPONSE_TABLE(TDibAttrDialog);
  28. };
  29.   
  30. #endif
  31.