Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.0 KiB

  1. #include "FaxServer.h"
  2. #include "FaxServerNode.h"
  3. #ifndef _PP_PROPERTYPAGE_EX_
  4. #define _PP_PROPERTYPAGE_EX_
  5. #include <atlsnap.h>
  6. #include <dlgutils.h>
  7. template <class T, bool bAutoDelete = true>
  8. class ATL_NO_VTABLE CPropertyPageExImpl: public CSnapInPropertyPageImpl<T,bAutoDelete>
  9. {
  10. public:
  11. CPropertyPageExImpl(CSnapInItem * pParentNode,LPCTSTR lpszTitle = NULL):
  12. CSnapInPropertyPageImpl<T, bAutoDelete>(lpszTitle)
  13. {
  14. CSnapinItemEx * pItemEx;
  15. pItemEx = dynamic_cast<CSnapinItemEx *>(pParentNode);
  16. m_pFaxServer = (dynamic_cast<CFaxServerNode *>(pItemEx->GetRootNode()))->GetFaxServer();
  17. m_spConsole = ((CFaxServerNode *)pParentNode)->m_pComponentData->m_spConsole;
  18. }
  19. HRESULT
  20. ConsoleMsgBox(
  21. int ids,
  22. LPTSTR lptstrTitle = NULL,
  23. UINT fuStyle = MB_OK,
  24. int *piRetval = NULL,
  25. BOOL StringFromCommonDll = FALSE)
  26. {
  27. return ::ConsoleMsgBox(m_spConsole, ids, lptstrTitle, fuStyle, piRetval,StringFromCommonDll);
  28. }
  29. protected:
  30. CComPtr<IConsole> m_spConsole;
  31. CFaxServer * m_pFaxServer;
  32. };
  33. #endif