home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / p / ptv3n5.zip / STATUS.ZIP / STATUS.H < prev   
C/C++ Source or Header  |  1992-08-25  |  905b  |  26 lines

  1. // status.h -- TStatusBar class declaration
  2.  
  3. #ifndef __STATUS_H
  4. #define __STATUS_H    // Prevent multiple #includes
  5.  
  6. // Status bar class
  7. _CLASSDEF(TStatusBar)
  8. class TStatusBar: public TWindow {
  9.   int currentID;      // Current resource ID
  10.   int childHeight;    // Height of status bar child window
  11.   HMENU hmenuSystem;  // Handle to System menu
  12.   HMENU hmenuFile;    // Handle to File menu                                        
  13.   HMENU hmenuEdit;    // Handle to Edit menu
  14. public:
  15.   TStatusBar(PTWindowsObject AParent);
  16.   virtual void SetupWindow();
  17.   virtual LPSTR GetClassName();
  18.   virtual void GetWindowClass(WNDCLASS &AWndClass);
  19.   void AdjustSize(WORD parentWidth, WORD parentHeight);
  20.   void DisplayString(int resourceID);
  21.   virtual void WMMenuSelect(RTMessage)
  22.     = [WM_FIRST + WM_MENUSELECT];
  23.   virtual void Paint(HDC PaintDC, PAINTSTRUCT &);
  24. };
  25.  
  26. #endif    // __STATUS_H