00001
00002
00003
00004
00005
00006 #include "stdafx.h"
00007 #include "FdmApp.h"
00008 #include "SitesSheet.h"
00009
00010 #ifdef _DEBUG
00011 #define new DEBUG_NEW
00012 #undef THIS_FILE
00013 static char THIS_FILE[] = __FILE__;
00014 #endif
00015
00016 IMPLEMENT_DYNAMIC(CSitesSheet, CPropertySheet)
00017
00018 CSitesSheet::CSitesSheet(UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage)
00019 :CPropertySheet(nIDCaption, pParentWnd, iSelectPage)
00020 {
00021 }
00022
00023 CSitesSheet::CSitesSheet(LPCTSTR pszCaption, CWnd* pParentWnd, UINT iSelectPage)
00024 :CPropertySheet(pszCaption, pParentWnd, iSelectPage)
00025 {
00026 }
00027
00028 CSitesSheet::~CSitesSheet()
00029 {
00030 }
00031
00032 BEGIN_MESSAGE_MAP(CSitesSheet, CPropertySheet)
00033
00034
00035 END_MESSAGE_MAP()
00036
00037 void CSitesSheet::Init(fsSiteInfo *pSite, int iSiteIndex)
00038 {
00039 m_general.m_pSite = m_advanced.m_pSite = pSite;
00040 m_general.m_iSiteIndex = m_advanced.m_iSiteIndex = iSiteIndex;
00041 m_general.m_advanced = &m_advanced;
00042 AddPage (&m_general);
00043 AddPage (&m_advanced);
00044 }
00045
00046 BOOL CSitesSheet::OnInitDialog()
00047 {
00048 CPropertySheet::OnInitDialog();
00049
00050 DWORD dw = GetWindowLong (m_hWnd, GWL_EXSTYLE);
00051 dw |= WS_EX_CONTEXTHELP;
00052 SetWindowLong (m_hWnd, GWL_EXSTYLE, dw);
00053
00054 return TRUE;
00055
00056 }