C ++向MDI添加窗口 [英] C++ adding window to MDI

查看:72
本文介绍了C ++向MDI添加窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的代码

This is my code

private: System::Void Form1_Load(System::Object^  sender, System::EventArgs^  e) {
    #include "thehtmleditor.h"

               // This gets a new instance of our child window.
thehtmleditor* newMDIChild = new thehtmleditor();
// Tells our new child window
// what is our parent window.
newMDIChild->MdiParent = this;
// Shows the new form.
// Don't confuse this with ShowDialog!
newMDIChild->Show();
         }



这应该在此表单中将表单htmleditor形式添加到mdi,但由于某种原因它不起作用,有人可以帮忙吗?



this should add the form thehtmleditor to the mdi from in the this form, but It doesn''t work for some reason can some one please help?

推荐答案

是什么那会发生什么呢?您遇到什么错误?
what is happening then ? what error you got?


这篇关于C ++向MDI添加窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆