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

  1. #ifndef _IVBINFOA_
  2. #define _IVBINFOA_
  3. /*******************************************************************************
  4. * FILE NAME: ivbinfoa.hpp                                                      *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   Declaration of the classes:                                                *
  8. *     IVBInfoArea                                                              *
  9. *                                                                              *
  10. * COPYRIGHT:                                                                   *
  11. *   IBM(R) VisualAge(TM) for C++                                               *
  12. *   (C) Copyright International Business Machines Corporation 1991, 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.  
  19. #include <iinfoa.hpp>
  20.  
  21. #include <istring.hpp>
  22.  
  23. class IFrameWindow;
  24. class IVBInfoAreaData;
  25. class IResourceId;
  26. class IModuleHandle;
  27.  
  28. /*-------------------------- Pragma Library Support --------------------------*/
  29. #ifndef __NO_DEFAULT_LIBS__
  30.   #ifdef __OS2__
  31.     #ifdef __IMPORTLIB__
  32.        #pragma library("CPPOOV3I.LIB")
  33.     #else
  34.        #pragma library("CPPOOV3.LIB")
  35.     #endif
  36.   #endif
  37.   #ifdef __WINDOWS__
  38.     #ifdef __IMPORTLIB__
  39.        #pragma library("CPPWOV3I.LIB")
  40.     #else
  41.        #pragma library("CPPWOV3.LIB")
  42.     #endif
  43.   #endif
  44. #endif
  45.  
  46. #pragma pack(4)
  47. #ifdef IC_PMWIN
  48. #pragma info(nocls)
  49. #endif
  50.  
  51. class IVBInfoArea : public IInfoArea {
  52. typedef IInfoArea
  53.   Inherited;
  54.  
  55. public:
  56. /*------------------------------- Constructors -------------------------------*/
  57.   IVBInfoArea ( IFrameWindow*        frame,
  58.                 unsigned long        id = 0 );
  59.  
  60.   IVBInfoArea ( IFrameWindow*        frame,
  61.                 unsigned long        id,
  62.                 const char*          resDLLName );
  63.  
  64.   IVBInfoArea ( IFrameWindow*        frame,
  65.                 const IModuleHandle& resMod,
  66.                 unsigned long        id = 0 );
  67.  
  68.   IVBInfoArea ( IFrameWindow*        frame,
  69.                 const char*          resDLLName,
  70.                 unsigned long        id = 0 );
  71.  
  72. virtual
  73.  ~IVBInfoArea ( );
  74.  
  75.  
  76. /*----------------------- Dynamically Updating Help Text ---------------------*/
  77. virtual IVBInfoArea
  78.  &setHelpText           ( unsigned long      menuId,
  79.                           const IString&     text    ),
  80.  
  81.  &setHelpText           ( unsigned long      menuId,
  82.                           const IResourceId& text    ),
  83.  
  84.  &removeHelpText        ( unsigned long      menuId  );
  85.  
  86. virtual IString
  87.   helpText              ( unsigned long      menuId  ) const;
  88.  
  89.  
  90. protected:
  91. /*---------------------- Information String Processing -----------------------*/
  92. virtual IString
  93.   informationFor        ( unsigned long menuId ) const;
  94.  
  95.  
  96. private:
  97. /*--------------------------------- Private ----------------------------------*/
  98. IVBInfoAreaData
  99.   *fVBInfoAreaData;
  100.  
  101. }; // IVBInfoArea
  102.  
  103. #ifdef IC_PMWIN
  104. #pragma info(restore)
  105. #endif
  106. #pragma pack()
  107.  
  108. #endif // _IVBINFOA_
  109.