佚名通过本文主要向大家介绍了activex控件下载,activex控件,activex控件被阻止,activex控件下载xp,activex等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
问题: 怎样写一个基于对话框的ActiveX?
描述:
解决方案1:
描述:
google 了一下.
看到两种方法.
方法 一.
1. Create a new MFC ActiveX ControlWizard workspace (no need to special options).
2. Insert a new dialog resource named IDC_MYDIALOG (check following: style - child, border - dialog frame, visible, control, static edge)
3. Insert a new MFC class named CMyDialog (base class CDialog)
4. Add CMyDialog m_MyDialog member to your CDialogCtrl header source (don't forget to add #include "MyDialog.h")
5. Using classwizard add a member function OnCreate (WM_CREATE)
在一个MFC的EXE 中使用OCX时. 只要点击了OCX对话框中的按钮,就会占100%的CPU.
方法二. 复合控件..代码太长..
解决方案1:
use ATL composite control