home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / icontrol.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  2.6 KB  |  69 lines

  1. #ifndef _ICONTROL_
  2.   #define _ICONTROL_
  3. /*******************************************************************************
  4. * FILE NAME: icontrol.hpp                                                      *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   Declaration of the classes:                                                *
  8. *     IControl                                                                 *
  9. *                                                                              *
  10. * COPYRIGHT:                                                                   *
  11. *   IBM Open Class Library                                                     *
  12. *   (C) Copyright International Business Machines Corporation 1992, 1996       *
  13. *   Licensed Material - Program-Property of IBM - All Rights Reserved.         *
  14. *   US Government Users Restricted Rights - Use, duplication, or disclosure    *
  15. *   restricted by GSA ADP Schedule Contract with IBM Corp.                     *
  16. *                                                                              *
  17. *******************************************************************************/
  18. #include <iwindow.hpp>
  19.  
  20. class IControlData;
  21.  
  22. #pragma pack(4)
  23.  
  24. class IControl : public IWindow  {
  25. typedef IWindow
  26.   Inherited;
  27. public:
  28. /*------------------------------- Constructors -------------------------------*/
  29. virtual
  30.   ~IControl();
  31.  
  32. /*---------------------------------- Styles ----------------------------------*/
  33. INESTEDBITFLAGCLASSDEF1(Style, IControl, IWindow);
  34. static const Style
  35.   IC_IMPORTU group,
  36.   IC_IMPORTU tabStop;
  37.  
  38. /*--------------------------- Groups and Tab Stops ---------------------------*/
  39. virtual IControl
  40.  &enableGroup    ( Boolean enable = true ),
  41.  &disableGroup   ( );
  42. virtual Boolean
  43.   isGroup        ( ) const;
  44. virtual IControl
  45.  &enableTabStop  ( Boolean enable = true ),
  46.  &disableTabStop ( );
  47. virtual Boolean
  48.   isTabStop      ( ) const;
  49.  
  50. protected:
  51. /*------------------------------- Constructors -------------------------------*/
  52.   IControl();
  53.  
  54. private:
  55. /*------------------------------ Hidden Members ------------------------------*/
  56.   IControl       ( const IControl& );
  57. IControl
  58.  &operator=      ( const IControl& );
  59.  
  60. /*--------------------------------- Private ----------------------------------*/
  61. IControlData
  62.  *fControlData;
  63. }; // class IControl
  64. INESTEDBITFLAGCLASSFUNCS(Style, IControl); // global style functions
  65.  
  66. #pragma pack()
  67.  
  68. #endif  /* _ICONTROL_ */
  69.