ATL 无窗口 ActiveX 控件中,得到容器窗口句柄的方法:
CComPtr < IOleClientSite > spClientSite;
GetClientSite( &spClientSite );
CComQIPtr < IOleInPlaceSite > spSite = spClientSite;
HWND hwnd;
spSite->GetWindow( &hwnd );
posted on 2005-08-05 08:55 杨老师的茅屋 阅读(1836)
评论(5) 编辑 收藏