home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / windows / c / mobjm260 / smchild.h_ / smchild.h
Encoding:
C/C++ Source or Header  |  1994-09-06  |  1.2 KB  |  47 lines

  1. //    Microworks ObjectMate  2.6
  2. //
  3. //  "SFX Class Library"
  4. //
  5. //    An ObjectWindows 2.0 extension for Borland C++ 4.0
  6. //
  7. //    Copyright 1992-94 Microworks Sydney, Australia.
  8. //
  9. //  SMCHILD.H
  10.  
  11. #if !defined(__SFX_SMCHILD_H)
  12. #define __SFX_SMCHILD_H
  13.  
  14. #if !defined(__OWL_MDICHILD_H)
  15.   #include <owl\mdichild.h>
  16. #endif
  17.  
  18. class _OWLCLASS TSFXMDIClient;
  19.  
  20. //  class TSFXMDIChild
  21.  
  22. class _OWLCLASS TSFXMDIChild : virtual public TMDIChild
  23. {
  24.   public:
  25.     TSFXMDIChild(TMDIClient&     parent,
  26.                      const char far* title = 0,
  27.                      TWindow*        clientWnd = new TWindow(0, 0, 0),
  28.                      BOOL            sfxFrame = FALSE,
  29.                      BOOL            sfxCaption = FALSE,
  30.                      BOOL            shrinkToClient = FALSE,
  31.                     TModule*        module = 0);
  32.  
  33.   protected:
  34.     void              SetupWindow();
  35.  
  36.     //    If SFXFrame, then sets the color the edit control to light gray.
  37.     HBRUSH            EvCtlColor(HDC, HWND hWndChild, UINT ctlType);
  38.  
  39.     //    call SFXDefWindowProc() instead of DefWindowProc()
  40.     LRESULT           DefWindowProc(UINT message, WPARAM wParam, LPARAM lParam);
  41.  
  42.   DECLARE_RESPONSE_TABLE(TSFXMDIChild);
  43.   DECLARE_STREAMABLE(_OWLCLASS, TSFXMDIChild, 1);
  44. };
  45.  
  46. #endif  // __SFX_SMCHILD_H
  47.