导航

<2005年8月>
31123456
78910111213
14151617181920
21222324252627
28293031123
45678910

随笔分类

随笔档案

文章档案

相册

2005年8月5日

ATL 无窗口 ActiveX 控件中,得到容器窗口句柄的方法:

CComPtr < IOleClientSite > spClientSite;
GetClientSite( &spClientSite );
CComQIPtr < IOleInPlaceSite > spSite = spClientSite;

HWND hwnd;
spSite->GetWindow( &hwnd );

发表于 2005-08-05 08:55 杨老师的茅屋 阅读(1836) | 评论 (5)编辑 收藏

统计