对话框使用ocx控件封装为dll
来源:互联网 发布:机器人仿真软件 编辑:程序博客网 时间:2024/06/05 08:26
mfc对话框中使用了ocx,再封装为dll,在导出函数中加入AfxEnableControlContainer()
void ShowMyDllDlg(HWND hMainWnd) //导出函数
{AFX_MANAGE_STATE(AfxGetStaticModuleState());
AfxEnableControlContainer();//使用ocx控件时添加这段代码
CMTT_Graphics_MainDlg *pDlg = new CMTT_Graphics_MainDlg;
CWnd * pMainWnd = CWnd:: FromHandle(hMainWnd);
ASSERT(pMainWnd);
BOOL retValue = pTreeDlg->Create(IDD_MTT_GRAPHICS_MAIN_DIALOG,pMainWnd);
if(!retValue)
{
AfxMessageBox(_T("创建对话框失败!"));
}
pTreeDlg->ShowWindow(SW_SHOW);
}
0 0
- 对话框使用ocx控件封装为dll
- C#封装ocx控件
- 如何注册dll、ocx控件
- 对话框DLL封装
- DSOFramer.ocx 控件使用
- MFC 对话框中动态加载OCX控件
- OCX和DLL的区别--OCX控件的应用
- 如何给ocx,dll控件进行数字签名
- InstallShield注册控件(DLL、OCX)
- Delphi写网页安全控件(dll,ocx)
- Java调用ocx控件以及dll
- Java调用ocx控件以及dll
- Java调用ocx控件以及dll
- InstallShield注册控件(DLL、OCX)
- Java调用ocx控件以及dll
- swing嵌入ocx或dll影像控件
- mfc dll封装对话框资源
- 使用命令注册.OCX控件
- 关于android客户端中webview调试的方法
- 傻瓜式的百度定位
- 任务调度器之azkaban(二)
- 异常信息接收器CrashWoodpecker
- 《软技能 代码之外的生存指南》读后感
- 对话框使用ocx控件封装为dll
- c语言之左右法则
- Mybatis手写分页,非常灵活
- pog 2891 Strange Way to Express Integers (中国剩余定理 非互质)
- 【爬坑之路】--Native method not found...【android studio上】
- CF 738D 贪心
- poj 1733 Parity game 离散化+带权并查集(区间)
- hive 数据倾斜总结
- 正则表达式学习