zoukankan      html  css  js  c++  java
  • MFC基于对话框的ActiveX

    I wanted to create a control which would behave as a dialog or formview (you can place controls here). There is a simple way to do it - to take advantage of ActiveX.

    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)

    Modify the member function OnDraw (the dialog's size depends on the WIDTH and HEIGHT specified in the HTML file):


  • 相关阅读:
    网站设计十忌
    sql优化代码
    负载均衡技术 (4)
    负载均衡技术 (3)
    使用exe4j打包jar生成exe常用设置
    大型网站设计注意事项
    大型企业网站建设存在的十大问题分析
    电子商务网站必须要解决的若干技术问题
    电子商务系统的商品实体分析和设计
    JFfreeChart使用文档
  • 原文地址:https://www.cnblogs.com/whisht/p/2319336.html
Copyright © 2011-2022 走看看