#include "FaxServer.h" #include "FaxServerNode.h" #ifndef _PP_PROPERTYPAGE_EX_ #define _PP_PROPERTYPAGE_EX_ #include #include template class ATL_NO_VTABLE CPropertyPageExImpl: public CSnapInPropertyPageImpl { public: CPropertyPageExImpl(CSnapInItem * pParentNode,LPCTSTR lpszTitle = NULL): CSnapInPropertyPageImpl(lpszTitle) { CSnapinItemEx * pItemEx; pItemEx = dynamic_cast(pParentNode); m_pFaxServer = (dynamic_cast(pItemEx->GetRootNode()))->GetFaxServer(); m_spConsole = ((CFaxServerNode *)pParentNode)->m_pComponentData->m_spConsole; } HRESULT ConsoleMsgBox( int ids, LPTSTR lptstrTitle = NULL, UINT fuStyle = MB_OK, int *piRetval = NULL, BOOL StringFromCommonDll = FALSE) { return ::ConsoleMsgBox(m_spConsole, ids, lptstrTitle, fuStyle, piRetval,StringFromCommonDll); } protected: CComPtr m_spConsole; CFaxServer * m_pFaxServer; }; #endif