TAB控件Microsoft Visual C ++ 2008 [英] TAB Control Microsoft Visual C++ 2008

查看:102
本文介绍了TAB控件Microsoft Visual C ++ 2008的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将控件放在一个对话框中,我希望将它们安排在选项卡控件中的单独选项卡中.这可能吗?我不想创建另一组对话框并将它们分配到我的选项卡控件中.

I have my controls in a single dialog i want them to be arranged into separate tabs in a tab control. Is this possible? i dont want to create another set of dialog and assign them into my tab control.

推荐答案

您可以通过放置显示和隐藏控件的处理程序来伪造它当用户选择选项卡时.

MyEditCtrl.ShowWindow(SW_HIDE);
MyEditCtrl.ShowWindow(SW_SHOW);

您可能需要使选项卡控件成为子控件的父级.

MyEditCtrl.SetParent(&MyTabCtrl);
You can fake it, by putting in a handler that shows and hides the controls when the user selects a tab.

MyEditCtrl.ShowWindow(SW_HIDE);
MyEditCtrl.ShowWindow(SW_SHOW);

You may need to make the tab control, the parent for the sub controls.

MyEditCtrl.SetParent(&MyTabCtrl);


这篇关于TAB控件Microsoft Visual C ++ 2008的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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