MFC VS 2008 TabControl - 无法添加变量
我以为我已经把整个 MFC 的事情都搞定了。我完全错了。
我开始了一个 VS 2008 项目,MFC 应用程序,基于对话框,共享 DLL。我已经制作了要添加到选项卡式控件中的所有对话框,并且我正处于(据我所知)向选项卡控件添加一个变量以使用它执行操作的步骤。但是“添加变量”是灰色的,我无法选择它。
基本上我处于 this< 的第二步/a>,
知道为什么我无法向选项卡控件添加变量吗?
谢谢你!
编辑:我刚刚注意到,如果我在默认对话框中添加选项卡控件,我可以添加变量。我尝试将此选项卡控件放入的对话框不是主对话框。
I thought I had this whole MFC thing down. I was completely wrong.
I started a VS 2008 project, MFC Application, Dialog Based, Shared DLL. I've made all the dialogs I want to add to the tabbed control and I'm at the step where (as far as I can tell) I add a variable to the tab control to do things with it. But "Add Variable" is greyed out and I cannot select it.
Basically I'm at the second step of this,
Any idea why I can't add a variable to the tab control?
Thank you!
Edit: I have just noticed that if I added a tab control in the default dialog I CAN add a variable. The dialog I'm trying to put this tab control into is NOT the main dialog.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧 - 很简单。我看到的所有示例都使用带有选项卡控件的默认对话框。为了能够向对话框的选项卡控件添加变量,我需要首先向对话框添加一个类(基类:CDialog)。
实际上还没有使选项卡正常工作,但明天我会这样做,现在我可以向选项卡控件添加变量。
tl;dr - 添加类 - 基类:CDialog - 到对话框。然后您可以向选项卡控件添加变量
Okay - it's simple. All the examples I were looking at were using the default dialog with the tab control. To make it possible to add a variable to the tab control of the dialog I needed to first add a class to the dialog (base class: CDialog).
Haven't actually got the tabs working yet, but I'll do that tomorrow, for now I can add variables to the tab control.
tl;dr - Add class - base class: CDialog - to the dialog. Then you can add variables to tab control