home *** CD-ROM | disk | FTP | other *** search
/ distrib.akp.su/Programming/Vb-6+Rus/ / distrib.akp.su.tar / distrib.akp.su / Programming / Vb-6+Rus / COMMON / MSDEV98 / BIN / MFCCLWZ.DLL / SRCDATA / CTLHEAD.H < prev    next >
C/C++ Source or Header  |  1998-06-18  |  809b  |  29 lines

  1. /////////////////////////////////////////////////////////////////////////////
  2. // %1 wrapper class
  3.  
  4. class %1 : public CWnd
  5. {
  6. protected:
  7.     DECLARE_DYNCREATE(%1)
  8. public:
  9.     CLSID const& GetClsid()
  10.     {
  11.         static CLSID const clsid
  12.             = %2;
  13.         return clsid;
  14.     }
  15.     virtual BOOL Create(LPCTSTR lpszClassName,
  16.         LPCTSTR lpszWindowName, DWORD dwStyle,
  17.         const RECT& rect,
  18.         CWnd* pParentWnd, UINT nID,
  19.         CCreateContext* pContext = NULL)
  20.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }
  21.  
  22.     BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
  23.         const RECT& rect, CWnd* pParentWnd, UINT nID,
  24.         CFile* pPersist = NULL, BOOL bStorage = FALSE,
  25.         BSTR bstrLicKey = NULL)
  26.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
  27.         pPersist, bStorage, bstrLicKey); }
  28.