绑定:
VARIANT data;
data.vt = VT_I4;
data.lVal = (long)pUser;
m_Grid.SetRowData(nRow,data);
取值:
VARIANT data;
data = m_Grid.GetRowData(n);
if(data.vt != VT_NULL)
CMyClass* pClass = (CMyClass*)data.lVal;
绑定:
VARIANT data;
data.vt = VT_I4;
data.lVal = (long)pUser;
m_Grid.SetRowData(nRow,data);
取值:
VARIANT data;
data = m_Grid.GetRowData(n);
if(data.vt != VT_NULL)
CMyClass* pClass = (CMyClass*)data.lVal;