这个函数怎么用(OleCreatePropertyFrame)

ychcyb 2003-11-23 11:01:32

我在看wmencoderSDK时看到这样一句话:
hr = OleCreatePropertyFrame
(
dlg.m_hWnd, // You must create the parent window.
200, // Horizontal position for the dialog box.
200, // Vertical position for the dialog box.
CComBSTR("name"), // String used for the dialog box caption.
1, // Number of pointers passed in pPlugin.
&pPlugin, // Pointer to the plug-in.
uuid.cElems, // Number of property pages.
uuid.pElems, // Array of property page CLSIDs.
LOCALE_USER_DEFAULT, // Locale ID for the dialog box.
0, // Reserved.
NULL // Reserved.
);
不知道是什么意思,查了msdn好像是添加属性页之类的(e文太差),那第一个参数不知道怎么设置,有没有哪位高手能指点一下,谢谢!要是能给个例子,那是最好了。
...全文
311 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
huanyun 2003-11-23
  • 打赏
  • 举报
回复
父窗口的句柄
ychcyb 2003-11-23
  • 打赏
  • 举报
回复
您可能还没理解我的意思,我知道是父窗口的句柄,但我不会使用啊!
我知道这个函数是在窗体上创建属性页,于是我基于CPropertyPage创建了一个dlg,把这个dlg的句柄传过去,结果在运行期出错,编译的时候没问题,说某个内存不能写!能不能给我一个关于这个函数的例子,让我有个感观的了解。谢谢!

3,245

社区成员

发帖
与我相关
我的任务
社区描述
ATL,Active Template Library活动(动态)模板库,是一种微软程序库,支持利用C++语言编写ASP代码以及其它ActiveX程序。
社区管理员
  • ATL/ActiveX/COM社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧