文档详情

IUsingtheFlexgridinVC++中文版英文版.doc

发布:2017-01-07约字共7页下载文档
文本预览下载声明
Using the Flexgrid in VC++ 作者:VGirish 翻译:胡盼(翻译得很粗糙,大家见谅) Introduction 介绍 When I had to use the flexgrid for the first time, I was too frustrated to find out that no proper documentation existed on the net. The ones available were too complicated for me to understand. And the ones that were easy were in VB. This article is to help persons who are going to use the flexgrid in their applications using VC++. Also take a look at the Warning note at the end of this article. 当我第一次不得不使用flexgrid控件时,发现在互联网上没有相关的合适的文档时,让我很困扰。而那些可利用的对我来说,又太复杂。于此同时,在VB中的flexgrid控件的文档又十分简单。本文档是帮助那些想在自己用VC++摆弄些的程序中使用flexgrid控件的人们。注意阅读以下文章结尾的注意事项。 Implementation 实现过程 Step 1 First, include the msflexgrid control in the project. To do that :- In the VC++ IDE Menu, go to Project-Add To Project-Components and Controls menu. Then , in the dialog box that appears, select Registered ActiveX Controls. There, You can see a control named Microsoft Hierarchical FlexGrid Control.... Select that and add it to your project using the Insert button. You can now see the FlexGrid control in the resource editors CONTROLS toolbar. Add it to your dialog as you add a control usually. 第一步 1.在VC++的编译器的菜单栏,选择 工程-增加到工程- Components and Controls 2.然后,在出现的查找文件对话框中,选择Registered ActiveX Controls,这儿,你会看到一个名称为”Microsoft Hierarchical FlexGrid Control...”的控件 3.选中它,并通过单击插入按钮,将它增加到你的工程中。你会发现FlexGrid控件出现在资源编辑工具栏的下方。 4.这样你就可以在你的对话框中使用FlexGrid控件了,就像使用普通的控件一样。 Step 2 Then, set the properties as you want it to be. Right click on the grid and select the Properties option. Change the settings there as per your requirements. 第二步 接着,按照自己的要求设置FlexGrid控件的属性。右击网格并选择属性选项。按照个人的要求,改变该控件的属性。 Step 3 Add a member variable for that grid. E.g. dem_Gridde. The sample given below is for an example. Use it as a guideline to make your application. 第三步 给FlexGrid控件增加一个想关联的成员变量,例如m_Gridde, 以下给出一个例子。使用该例子作为一个指导准侧来编写你的程序。 Step 4 Its better to clear the flexgrid before you do any operations on it. To do that, use :- 第四步 最好在你对FlexGrid控件进行任何操作之前,先清空它。像这样做:- m_
显示全部
相似文档