// FunSheet.cpp: implementation of the CFunSheet class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "kbeditors.h" #include "FunSheet.h" #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[]=__FILE__; #define new DEBUG_NEW #endif ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////// // CFunSheet IMPLEMENT_DYNAMIC(CFunSheet, CPropertySheet) CFunSheet::CFunSheet(UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage) :CPropertySheet(nIDCaption, pParentWnd, iSelectPage) { AddPage(&m_CFunDlg); } CFunSheet::CFunSheet(LPCTSTR pszCaption, CWnd* pParentWnd, UINT iSelectPage) :CPropertySheet(pszCaption, pParentWnd, iSelectPage) { AddPage(&m_CFunDlg); } CFunSheet::~CFunSheet() { } BEGIN_MESSAGE_MAP(CFunSheet, CPropertySheet) //{{AFX_MSG_MAP(CCptSheet) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CCptSheet message handlers void CFunSheet::SeeDoc(CKBEditorsDoc*Doc) { m_Doc = Doc; } BOOL CFunSheet::OnInitDialog() { BOOL bResult = CPropertySheet::OnInitDialog(); CenterWindow(GetDesktopWindow()); m_CFunDlg .SeeDoc (m_Doc); m_CFunDlg.DrawTree (); // m_CCptPage.SeeDoc(m_Doc); /* Draw the Tree*/ // m_CCptPage.DrawCptTree(); return bResult; } /*BOOL CFunSheet::m_CFunDlgExist = TRUE; BOOL CFunSheet::DestroyWindow() { m_CFunDlgExist = TRUE; return CFunSheet::DestroyWindow(); }*/