使用Win32 API从VSFlexGrid检索数据 [英] Retrieve data from VSFlexGrid using win32 api

查看:176
本文介绍了使用Win32 API从VSFlexGrid检索数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


如何使用win32api从VSFlexGrid获取数据?
我有Windows手柄,但无法获取数据?或向其中写入数据.
我能够手动编写数据,我想用C ++或C#代码来做.

谢谢
Gabi

Hi,
How can I get the data from VSFlexGrid using win32api?
I have the windows handle, but I can''t get the data? or write a data to it.
I am able to write the data manualy, I want do do it with C++ or C# code.

Thank,
Gabi

推荐答案

从VC ++中的VS Flexi Grid获取数据
创建一个成员变量,然后使用该变量
//用于从网格获取数据
m_Grid是成员变量,然后
if(int i = 0; i< m_grid.getrows(); i ++)>
{
if(int i = 0; i< m_grid.getcols(); i ++)>
{
m_Grid.GetTextMatrix(row,col,stringtoget);
}
}
//用于将数据设置到网格
if(int i = 0; i< m_Grid.GetRows(); i ++)
{
if(int i = 0; i< m_Grid.GetCols(); i ++)
{
m_Grid.SetTextMatrix(row,col,stringtoset);
}
}
看到两个cols都是行将一个参数设为0 OK
如果无法使用向导创建,则可以使用网格的类创建该网格的对象,然后访问其方法
TO get data from VS Flexi Grid in VC++
create a member varibale to it and then using that
//For getting the data from the grid
m_Grid is the member variable then
if(int i=0;i<m_grid.getrows();i++)>
{
if(int i=0;i<m_grid.getcols();i++)>
{
m_Grid.GetTextMatrix(row,col,stringtoget);
}
}
//For setting the data to the grid
if(int i=0;i<m_Grid.GetRows();i++)
{
if(int i=0;i<m_Grid.GetCols();i++)
{
m_Grid.SetTextMatrix(row,col,stringtoset);
}
}
See either cols are rows will take one argument as 0 OK
if you cant create using the wizard means then you can create the object of that grid using the class of it and then access the methods of it


这篇关于使用Win32 API从VSFlexGrid检索数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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