简体   繁体   English

将面板添加到MFC应用程序(Visual Studio C ++)

[英]Adding a Panel to MFC application (Visual Studio C++)

I am really sorry if this is a dumb question - I am new in Visual Studio and can't find an answer to this. 如果这是一个愚蠢的问题,我真的很抱歉 - 我是Visual Studio的新手,无法找到答案。 Probably because it should be really obvious, but just can't see what I'm doing wrong. 可能是因为它应该是非常明显的,但却看不出我做错了什么。

I am using Visual Studio 2012, creating a dialog-based MFC application. 我正在使用Visual Studio 2012,创建一个基于对话框的MFC应用程序。 I would like to draw on a panel, but when I try to add a panel to my dialog - there just is no panel! 我想在一个面板上绘图,但当我尝试在我的对话框中添加一个面板时 - 就没有面板了! What am I missing? 我错过了什么?

在此输入图像描述

MFC has no concept of panels. MFC没有面板的概念。 The only suggestions I can offer are either to write a custom control or look for a third party MFC controls library which offers what you need. 我可以提供的唯一建议是编写自定义控件或查找提供所需内容的第三方MFC控件库。

If you're just trying to separate content, perhaps a group box with no title would do? 如果你只是想分开内容,也许一个没有标题的组合框会这样做?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM