MFC终极网格控制 - 获取网格内的复选框状态 [英] MFC ultimate grid control - getting the state of an checkbox inside the grid

查看:114
本文介绍了MFC终极网格控制 - 获取网格内的复选框状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨代码项目朋友,



我现在正试图获取网格内的复选框状态。

复选框将控制另一个对话框的可见性。

i将它转移到一个bool向量中。

所以如何获得当前状态?

Cell -funktions教程没有给我正确的答案,

因为我发现任何互动,只需显示 那里





谢谢你的帮助

干杯!



我的尝试:



void CConfiguratorListSortByCtrl :: OnEditVerify()

{

CUGCell单元格;

GetCell(COLUMN_VISIBILITY,2,& cell);



if(cell.GetCellType()== UG_SUCCESS)

{cell.SetBackColor(m_FailureSalmonColor);}

else {cell.SetBackColor(m_HighlightedBackColor);}





SetCell(COLUMN_VISIBILITY,2,& cell); < br $>




}

//即时通讯使用oneditverify获取快速反馈是否有效。

Hi codeproject friends,

right now im trying to get the state of an checkbox inside of a grid.
the checkbox will contorl the visibility of another dialog.
i will transfer it in a bool vector.
so how can i get the current state?
The Cell-funktions tutorial didnt gave me the right answer,
because i coudnt find any interactions, just display it there


thank you for helpin me
cheers!

What I have tried:

void CConfiguratorListSortByCtrl::OnEditVerify()
{
CUGCell cell;
GetCell(COLUMN_VISIBILITY,2, &cell);

if (cell.GetCellType() == UG_SUCCESS)
{cell.SetBackColor(m_FailureSalmonColor);}
else {cell.SetBackColor(m_HighlightedBackColor);}


SetCell(COLUMN_VISIBILITY,2, &cell);


}
//im using oneditverify to get a fast feedback about is it workin or not.

推荐答案

OnCellTypeNotify(long ID, int col,long row, long msg, LONG_PTR param);







msg == 53如果状态改变

param ==如果选中则为true ,

==如果未选中则为false。




msg == 53 if status changed
param == true if checked,
== false if unchecked.


用于更改单元格内复选框的(初始绘制)状态,

你必须改变财产

cell.SetNumber(1); - >选中,0 =未选中



遗憾的是它不是记录在终极网格控件的doku中
for changing the (initial painted) state of an checkbox inside of a cell,
you have to change the property with
cell.SetNumber(1);-->checked, 0 = unchecked

unfortunately its not written down in the doku of the Ultimate Grid Control


这篇关于MFC终极网格控制 - 获取网格内的复选框状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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