PropPageCtrl.cpp
上传用户:lc8096
上传日期:2007-01-02
资源大小:40k
文件大小:1k
- // PropPageCtrl.cpp : Implementation of CPropPageCtrl
- #include "stdafx.h"
- #include "PropPageATL.h"
- #include "PropPageCtrl.h"
- /////////////////////////////////////////////////////////////////////////////
- // CPropPageCtrl
- HRESULT CPropPageCtrl::OnDraw(ATL_DRAWINFO& di)
- {
- RECT& rc = *(RECT*)di.prcBounds;
- Rectangle(di.hdcDraw, rc.left, rc.top, rc.right, rc.bottom);
- DrawText(di.hdcDraw, _T("ATL 2.0"), -1, &rc, DT_CENTER | DT_VCENTER | DT_SINGLELINE);
- return S_OK;
- }
- STDMETHODIMP CPropPageCtrl::Execute()
- {
- // TODO: Add your implementation code here
- Fire_ObjectFound( CComBSTR( _T("ATL_OBJECT_ID1" ) ) );
- Fire_ObjectFound( CComBSTR( _T("ATL_OBJECT_ID2" ) ) );
- Fire_ObjectFound( CComBSTR( _T("ATL_OBJECT_ID3" ) ) );
- Fire_ObjectFound( CComBSTR( _T("ATL_OBJECT_ID4" ) ) );
- Fire_ObjectFound( CComBSTR( _T("ATL_OBJECT_ID5" ) ) );
- Fire_ObjectFound( CComBSTR( _T("ATL_OBJECT_ID6" ) ) );
- Fire_ObjectFound( CComBSTR( _T("ATL_OBJECT_ID7" ) ) );
- Fire_ObjectFound( CComBSTR( _T("ATL_OBJECT_ID8" ) ) );
- Fire_ObjectFound( CComBSTR( _T("ATL_OBJECT_ID9" ) ) );
- Fire_ObjectFound( CComBSTR( _T("ATL_OBJECT_ID0" ) ) );
- return S_OK;
- }