PropPagePpg.h
上传用户:lc8096
上传日期:2007-01-02
资源大小:40k
文件大小:1k
源码类别:

ActiveX/DCOM/ATL

开发平台:

Visual C++

  1. // PropPagePpg.h : Declaration of the CPropPagePpg
  2. #ifndef __PROPPAGEPPG_H_
  3. #define __PROPPAGEPPG_H_
  4. #include "resource.h"       // main symbols
  5. EXTERN_C const CLSID CLSID_PropPagePpg;
  6. /////////////////////////////////////////////////////////////////////////////
  7. // CPropPagePpg
  8. class ATL_NO_VTABLE CPropPagePpg :
  9. public CComObjectRootEx<CComSingleThreadModel>,
  10. public CComCoClass<CPropPagePpg, &CLSID_PropPagePpg>,
  11. public IPropertyPageImpl<CPropPagePpg>,
  12. public CDialogImpl<CPropPagePpg>
  13. {
  14. public:
  15. CPropPagePpg() 
  16. {
  17. m_dwTitleID = IDS_TITLEPropPagePpg;
  18. m_dwHelpFileID = IDS_HELPFILEPropPagePpg;
  19. m_dwDocStringID = IDS_DOCSTRINGPropPagePpg;
  20. }
  21. enum {IDD = IDD_PROPPAGEPPG};
  22. DECLARE_REGISTRY_RESOURCEID(IDR_PROPPAGEPPG)
  23. BEGIN_COM_MAP(CPropPagePpg) 
  24. COM_INTERFACE_ENTRY_IMPL(IPropertyPage)
  25. END_COM_MAP()
  26. BEGIN_MSG_MAP(CPropPagePpg)
  27. CHAIN_MSG_MAP(IPropertyPageImpl<CPropPagePpg>)
  28. END_MSG_MAP()
  29. STDMETHOD(Apply)(void)
  30. {
  31. ATLTRACE(_T("CPropPagePpg::Applyn"));
  32. for (UINT i = 0; i < m_nObjects; i++)
  33. {
  34. // Do something interesting here
  35. // ICircCtl* pCirc;
  36. // m_ppUnk[i]->QueryInterface(IID_ICircCtl, (void**)&pCirc);
  37. // pCirc->put_Caption(CComBSTR("something special"));
  38. // pCirc->Release();
  39. }
  40. m_bDirty = FALSE;
  41. return S_OK;
  42. }
  43. };
  44. #endif //__PROPPAGEPPG_H_