本文整理汇总了C++中ARRAY::GetData方法的典型用法代码示例。如果您正苦于以下问题:C++ ARRAY::GetData方法的具体用法?C++ ARRAY::GetData怎么用?C++ ARRAY::GetData使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ARRAY
的用法示例。
在下文中一共展示了ARRAY::GetData方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnDeleteCopyData
void CCopyProperties::OnDeleteCopyData()
{
int nCount = m_lCopyData.GetSelCount();
if(nCount)
{
m_bDeletedData = true;
//Get the selected indexes
ARRAY items;
items.SetSize(nCount);
m_lCopyData.GetSelItems(nCount, items.GetData());
items.SortDescending();
//Get the selected itemdata
for(int i = 0; i < nCount; i++)
{
m_DeletedData.Add(m_lCopyData.GetItemData(items[i]));
m_lCopyData.DeleteString(items[i]);
}
}
}
示例2: OnDeleteCopyData
void CCopyProperties::OnDeleteCopyData()
{
int nCount = m_lCopyData.GetSelCount();
if(nCount)
{
m_bDeletedData = true;
//Get the selected indexes
ARRAY items;
items.SetSize(nCount);
m_lCopyData.GetSelItems(nCount, items.GetData());
items.SortDescending();
//Get the selected itemdata
for(int i = 0; i < nCount; i++)
{
int row = items[i];
m_DeletedData.Add((int)m_lCopyData.GetItemData(row));
m_lCopyData.DeleteString(row);
int newRow = row-1;
if(newRow < 0)
{
newRow = 0;
}
if(newRow >= 0 && newRow < m_lCopyData.GetCount())
{
m_lCopyData.SetSel(newRow);
m_lCopyData.SetCurSel(newRow);
m_lCopyData.SetCaretIndex(newRow);
m_lCopyData.SetAnchorIndex(newRow);
}
}
}
}
示例3: SendSelection
void CQListCtrl::SendSelection(ARRAY &arrItems)
{
GetParent()->SendMessage(NM_SELECT, arrItems.GetSize(), (LPARAM) arrItems.GetData());
}