home *** CD-ROM | disk | FTP | other *** search
/ Media Share 13 / mediashare_13.zip / mediashare_13 / ZIPPED / PROGRAM / WTJ9403.ZIP / WILDASS / SOURCE / FAKECPTN.H < prev    next >
C/C++ Source or Header  |  1993-08-01  |  704b  |  34 lines

  1. // fakecptn.h
  2. //
  3. // interface to a simple class defining a window that is
  4. // not resizable and has a fake caption bar and system menu box.
  5. //
  6. // update: 1.00 28-Jul-93 tw
  7.  
  8. #ifndef _INC_FAKECAPTN
  9. #define _INC_FAKECAPTN
  10.  
  11. #define new DEBUG_NEW 
  12.          
  13. class CFakeWnd : public CFrameWnd
  14. {  
  15. protected:
  16.    CRect * m_pRectCaption;    // sizeof caption
  17.    CRect * m_pRectSysMenu;    // sizeof of close box
  18.  
  19. public:
  20.    CFakeWnd(); 
  21.    ~CFakeWnd();
  22.            
  23. protected:           
  24.    afx_msg UINT OnNcHitTest( CPoint pnt );
  25.    afx_msg void OnPaint();
  26.    
  27.    afx_msg void OnActivateApp( BOOL bActive, HTASK hTask );
  28.    
  29.    DECLARE_MESSAGE_MAP()
  30. };
  31.  
  32. #endif // _INC_FAKECAPTN
  33.  
  34.