home *** CD-ROM | disk | FTP | other *** search
- // $$VAL:SHEETIMPLEMENTATION$$ : implementation file
- //
-
- #include "stdafx.h"
- #include "$$VAL:RESINC$$"
- #include "$$VAL:SHEETHEADER$$"
-
- #ifdef _DEBUG
- #undef THIS_FILE
- static char BASED_CODE THIS_FILE[] = __FILE__;
- #endif
-
- /////////////////////////////////////////////////////////////////////////////
- // $$VAL:SHEETCLASS$$
-
- IMPLEMENT_DYNAMIC($$VAL:SHEETCLASS$$, CPropertySheet)
-
- $$VAL:SHEETCLASS$$::$$VAL:SHEETCLASS$$(CWnd* pWndParent)
- : CPropertySheet($$VAL:SheetCaption$$, pWndParent)
- {
- // Add all of the property pages here. Note that
- // the order that they appear in here will be
- // the order they appear in on screen. By default,
- // the first page of the set is the active one.
- // One way to make a different property page the
- // active one is to call SetActivePage().
-
- $$LOOP:PAGES:PAGE_IDX$$
- AddPage(&$$VAL_IDX:PAGEVAR:PAGE_IDX$$);
- $$ENDLOOP$$
- $$IF:WizardMode$$
-
- SetWizardMode();
- $$ENDIF$$
- }
-
- $$VAL:SHEETCLASS$$::~$$VAL:SHEETCLASS$$()
- {
- }
-
-
- BEGIN_MESSAGE_MAP($$VAL:SHEETCLASS$$, CPropertySheet)
- //{{AFX_MSG_MAP($$VAL:SHEETCLASS$$)
- // NOTE - the ClassWizard will add and remove mapping macros here.
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
-
-
- /////////////////////////////////////////////////////////////////////////////
- // $$VAL:SHEETCLASS$$ message handlers
-
- $$IF:PREVIEW$$
- BOOL $$VAL:SHEETCLASS$$::OnInitDialog()
- {
- BOOL bResult = CPropertySheet::OnInitDialog();
-
- // add a preview window to the property sheet.
- CRect rectWnd;
- GetWindowRect(rectWnd);
- SetWindowPos(NULL, 0, 0,
- rectWnd.Width() + 100,
- rectWnd.Height(),
- SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE);
- CRect rectPreview(rectWnd.Width() + 25, 25,
- rectWnd.Width()+75, 75);
-
- m_wndPreview.Create(NULL, NULL, WS_CHILD|WS_VISIBLE,
- rectPreview, this, 0x1000);
-
- CenterWindow();
- return bResult;
- }
-
- $$ENDIF$$
- $$IF:MODELESS$$
- void $$VAL:SHEETCLASS$$::PostNcDestroy()
- {
- CPropertySheet::PostNcDestroy();
- delete this;
- }
-
- $$ENDIF$$
-
-