home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / common / msdev98 / bin / ide / devgal.pkg / TEMPLATE / 22339 < prev    next >
Encoding:
Text File  |  1998-06-18  |  1.7 KB  |  74 lines

  1. // $$VAL:SHEETHEADER$$ : header file
  2. //
  3. $$IF:MODELESS$$
  4. // $$VAL:SHEETCLASS$$ is a modeless property sheet that is 
  5. // created once and not destroyed until the application
  6. // closes.  It is initialized and controlled from
  7. // $$VAL:FRAMECLASS$$.
  8.  $$ENDIF$$
  9. $$IF:!MODELESS$$
  10. // This class defines custom modal property sheet 
  11. // $$VAL:SHEETCLASS$$.
  12.  $$ENDIF$$
  13. $$IF:PREVIEW$$
  14. // $$VAL:SHEETCLASS$$ has been customized to include
  15. // a preview window.
  16.  $$ENDIF$$
  17.  
  18. #ifndef $$VAL:SHEETWRAPPER$$
  19. #define $$VAL:SHEETWRAPPER$$
  20.  
  21. #include "$$VAL:PAGEHEADER$$"
  22. $$IF:PREVIEW$$
  23. #include "$$VAL:PREVIEWHEADER$$"
  24. $$ENDIF$$
  25.  
  26. /////////////////////////////////////////////////////////////////////////////
  27. // $$VAL:SHEETCLASS$$
  28.  
  29. class $$VAL:SHEETCLASS$$ : public CPropertySheet
  30. {
  31.     DECLARE_DYNAMIC($$VAL:SHEETCLASS$$)
  32.  
  33. // Construction
  34. public:
  35.     $$VAL:SHEETCLASS$$(CWnd* pParentWnd = NULL);
  36.  
  37. // Attributes
  38. public:
  39. $$LOOP:PAGES:PAGE_IDX$$
  40.     $$VAL_IDX:PAGECLASS:PAGE_IDX$$ $$VAL_IDX:PAGEVAR:PAGE_IDX$$;
  41. $$ENDLOOP$$
  42. $$IF:PREVIEW$$
  43.     $$VAL:PREVIEWCLASS$$ m_wndPreview;
  44. $$ENDIF$$
  45.  
  46. // Operations
  47. public:
  48.  
  49. // Overrides
  50.     // ClassWizard generated virtual function overrides
  51.     //{{AFX_VIRTUAL($$VAL:SHEETCLASS$$)
  52.     //}}AFX_VIRTUAL
  53.  
  54. // Implementation
  55. public:
  56.     virtual ~$$VAL:SHEETCLASS$$();
  57. $$IF:PREVIEW$$
  58.          virtual BOOL OnInitDialog();
  59. $$ENDIF$$
  60. $$IF:MODELESS$$
  61.      virtual void PostNcDestroy();
  62. $$ENDIF$$
  63.  
  64. // Generated message map functions
  65. protected:
  66.     //{{AFX_MSG($$VAL:SHEETCLASS$$)
  67.         // NOTE - the ClassWizard will add and remove member functions here.
  68.     //}}AFX_MSG
  69.     DECLARE_MESSAGE_MAP()
  70. };
  71.  
  72. /////////////////////////////////////////////////////////////////////////////
  73.  
  74. #endif    // $$VAL:SHEETWRAPPER$$