home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / pc3270sa.zip / eclwmet.hpp < prev    next >
C/C++ Source or Header  |  2002-02-28  |  3KB  |  67 lines

  1. //-------------------------------------------------------------------------------
  2. // Module:  eclwmet.hpp
  3. //-------------------------------------------------------------------------------
  4. //
  5. // Description:  Declaration of ECLWinMetrics class.  This object
  6. //               represents the physical characteristics of an emulator window.
  7. //
  8. //-------------------------------------------------------------------------------
  9. // Copyright Notice: IBM Personal Communication/3270 Version 4.3
  10. //                   (C) COPYRIGHT IBM CORP. 1989,1998 - PROGRAM PROPERTY
  11. //                   OF IBM ALL RIGHTS RESERVED
  12. //-------------------------------------------------------------------------------
  13.  
  14. #include "eclall.hpp"
  15. #ifndef _ECLWMET_HPP_
  16. #define _ECLWMET_HPP_
  17.  
  18. //#include "eclbase.hpp"                                                         
  19. //#include "eclcinfo.hpp"                                                        
  20.  
  21. class ECLWinMetData;                        // Foreward declaration 
  22. class DllExport ECLWinMetrics : public ECLConnection
  23. {
  24.   private: // Class private data
  25.     ECLWinMetData   *pd;                    
  26.  
  27.   private: // Constructors and operators not allowed on this object
  28.     ECLWinMetrics();
  29.     ECLWinMetrics(const ECLWinMetrics &From);
  30.     ECLWinMetrics& operator= (const ECLWinMetrics &From);
  31.  
  32.   public:
  33.  
  34.     // Constructor/destructor
  35.     ECLWinMetrics(char ConnName);         
  36.     ECLWinMetrics(long ConnHandle);                            
  37.     ~ECLWinMetrics();
  38.  
  39.     // ECLWinMetrics property access functions
  40.     const char *GetWindowTitle() const;
  41.     void  SetWindowTitle(const char * const NewTitle);             
  42.     long  GetXpos() const;                    
  43.     void  SetXpos(long XPos);                      
  44.     long  GetYpos() const;                    
  45.     void  SetYpos(long YPos);                      
  46.     long  GetWidth() const;                   
  47.     void  SetWidth(long Width);                     
  48.     long  GetHeight() const;                  
  49.     void  SetHeight(long Height);                    
  50.     void  SetWindowRect(long XPos,  long YPos,  long Width,  long Height);                    
  51.     void  GetWindowRect(long *XPos, long *YPos, long *Width, long *Height) const;                    
  52.     BOOL  IsVisible() const;               
  53.     void  SetVisible(BOOL MakeVisible);                   
  54.     BOOL  IsActive() const;               
  55.     void  SetActive(BOOL MakeActive);                   
  56.     BOOL  IsMinimized() const;                   
  57.     void  SetMinimized();                     
  58.     BOOL  IsMaximized() const;                   
  59.     void  SetMaximized();                     
  60.     BOOL  IsRestored() const;                   
  61.     void  SetRestored();                     
  62. };
  63.  
  64. typedef ECLWinMetrics * PECLWinMetrics;
  65.  
  66. #endif //_ECLWMET_HPP_
  67.