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

ActiveX/DCOM/ATL

开发平台:

Visual C++

  1. // PropPageCtrl.cpp : Implementation of CPropPageCtrl
  2. #include "stdafx.h"
  3. #include "PropPageATL.h"
  4. #include "PropPageCtrl.h"
  5. /////////////////////////////////////////////////////////////////////////////
  6. // CPropPageCtrl
  7. HRESULT CPropPageCtrl::OnDraw(ATL_DRAWINFO& di)
  8. {
  9. RECT& rc = *(RECT*)di.prcBounds;
  10. Rectangle(di.hdcDraw, rc.left, rc.top, rc.right, rc.bottom);
  11. DrawText(di.hdcDraw, _T("ATL 2.0"), -1, &rc, DT_CENTER | DT_VCENTER | DT_SINGLELINE);
  12. return S_OK;
  13. }
  14. STDMETHODIMP CPropPageCtrl::Execute()
  15. {
  16. // TODO: Add your implementation code here
  17. Fire_ObjectFound( CComBSTR( _T("ATL_OBJECT_ID1" ) ) );
  18. Fire_ObjectFound( CComBSTR( _T("ATL_OBJECT_ID2" ) ) );
  19. Fire_ObjectFound( CComBSTR( _T("ATL_OBJECT_ID3" ) ) );
  20. Fire_ObjectFound( CComBSTR( _T("ATL_OBJECT_ID4" ) ) );
  21. Fire_ObjectFound( CComBSTR( _T("ATL_OBJECT_ID5" ) ) );
  22. Fire_ObjectFound( CComBSTR( _T("ATL_OBJECT_ID6" ) ) );
  23. Fire_ObjectFound( CComBSTR( _T("ATL_OBJECT_ID7" ) ) );
  24. Fire_ObjectFound( CComBSTR( _T("ATL_OBJECT_ID8" ) ) );
  25. Fire_ObjectFound( CComBSTR( _T("ATL_OBJECT_ID9" ) ) );
  26. Fire_ObjectFound( CComBSTR( _T("ATL_OBJECT_ID0" ) ) );
  27. return S_OK;
  28. }