home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / BC_502 / ADDON.PAK / PDVIEW.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-06  |  934 b   |  34 lines

  1. #ifndef __PDVIEW_H
  2. #define __PDVIEW_H
  3.  
  4. #include <ideaddon\iview.h>
  5.  
  6. /******************************************************************************
  7. *
  8. *
  9. * ProjectDetailViewFactory
  10. *
  11. *
  12. ******************************************************************************/
  13. class ProjectDetailViewFactory : public IUserViewFactory {
  14. public:
  15.  
  16.   ProjectDetailViewFactory(IViewType* projectView);
  17.  
  18.   //IUnknown members
  19.   STDMETHODIMP QueryInterface (THIS_ REFIID, LPVOID FAR *);
  20.   STDMETHODIMP_(ULONG) AddRef (THIS) { return m_RefCount++; }
  21.   STDMETHODIMP_(ULONG) Release (THIS) 
  22.       {return --m_RefCount == 0 ? (delete this, 0) : m_RefCount; }
  23.  
  24.   virtual IViewClient * CreateView(IViewParentWnd* wndServer,
  25.                                     void * restoreData);
  26.   virtual void          InitializeProperty(IViewType* viewType);
  27.  
  28. protected:
  29.   // private variables
  30.   ULONG    m_RefCount;
  31. };
  32.  
  33. #endif // __PDVIEW_H
  34.