如何在我的项目中添加网格控件 [英] how to add grid control to my project

查看:71
本文介绍了如何在我的项目中添加网格控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好
我是vc ++的真正初学者,经过一番努力,我一周前完全编写了一个程序.现在,我想添加一个非常简单的网格控件,以便我的程序从网格获取其输入和数据并运行.
我想寻求最好的方法来执行此操作,因为它花了一个多星期的时间才尝试许多方法,但仍未取得任何结果.我也尝试了3个列表框(因为我需要三列),但是将它们的数据保存在3个数组中的操作不正确,而且我真的很困惑:(我不知道该怎么办,我没有太多时间.
您能告诉我在对话框中实现简单的可编辑网格的最简单方法是什么,如果我可以将MFC gridcontrol作为另一个项目添加到我的项目中,如何在我的主项目中使用gridcontrol单元的值,因为我无法解决我使用外部变量时出现外部符号错误,我猜想是因为项目是分开的,它不仅需要添加标题并使用extern :(
你现在能帮我什么忙吗?

hi everyone
Im a real beginner in vc++ and after much effort I wrote a program compeletely a week ago. now I want to add a very simple grid control so that my program gets its inputs and data from the grid and runs.
I wanna ask for the best way to do this,cuz its more than a week that im trying many methods and havent got to any results. I also tried it with 3 listboxes(as i need three columns) but the saving their data in 3 arrays isnt done correctly and im really confused :( i dont know what to do and i dont have much time.
would u tell me what could be the easiest way to achieve a simple editable grid in dialog and if i can add the MFC gridcontrol to my project as another project how can i use the value of the gridcontrol cells in my main project cuz i get unresolved external symbol error when i use extern variables i guess as the projects are seperated it needs more than just adding headers and using extern:(
would u plz help me im really out of any idea now.
thanks in advance.

推荐答案

嘿,右键单击要添加网格控件的对话框,然后根据需求控件选择Microsoft flexi Gird或任何网格控件如果您没有获得此选项,则意味着您需要保留Visual Studio并完成ActiveX控件的安装,如果它还没有到位,则意味着安装MS Office,然后尝试安装,然后尝试使用该工具,则可以使用一切顺利
hey right click on the dialog that you want to add a grid control and then choose Microsoft flexi Gird or any grid control according to the requirement control if you don''t get this option means then you need to keep the visual studio and complete the installation of ActiveX controls then also if its not coming means install the MS office and then try may be you will get this one then you can use it k all the best


也许 [ ^ ]可以提供帮助.您也可以在CP中搜索其他文章.
Maybe this[^] can help. You can also search for other articles here in CP.


您可以使用Hierarchical Flex网格.在对话框上,右键单击按钮.您将获得一个选项插入Active-X控件".您会得到一个列表框.如果向下滚动,您会看到Hierarchical Flex网格.选择它,然后单击确定按钮.

希望对您有帮助
You can use Hierarchical Flex grid. On your dialog box, right click the button. You get an option Insert Active-X Control. You get a listbox. if you scroll down a bit you can see Hierarchical Flex grid. Select that and click OK button.

Hope this helps


这篇关于如何在我的项目中添加网格控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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