本文整理汇总了C++中MEvent::UpdateMeasurementInfo方法的典型用法代码示例。如果您正苦于以下问题:C++ MEvent::UpdateMeasurementInfo方法的具体用法?C++ MEvent::UpdateMeasurementInfo怎么用?C++ MEvent::UpdateMeasurementInfo使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MEvent
的用法示例。
在下文中一共展示了MEvent::UpdateMeasurementInfo方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: UpdateColumnEntry
void EventDlg::UpdateColumnEntry(int iItem, int hcol, LPTSTR val)
{
UINT icol =ImpEditCol::m_fileheadermap[hcol]; // see this garbage? a result of poor design
CString s;
if (ImpEditCol::eMeasType == icol) // for string to numeric internal maps, handle the update differently
{
MEvent* pm = (MEvent*)m_List.GetItemData(iItem);
if (pm)
{
CString szDisplayableResult;
pm->UpdateMeasurementInfo(ImpEditCol::m_meacolmap[icol], val, szDisplayableResult);
m_List.SetItemText(iItem,ImpEditCol::eMeasType,tMeasurementTypeImage((tMeasurementType)pm->m_vr._iMPMeasurementType));
}
}
else
{
if (UpdateValue(iItem , icol, val, s)) // icol is ImpEd enum
{
m_List.SetItemText(iItem , icol, s);
}
}
}
示例2: OnComboSelection
LRESULT EventDlg::OnComboSelection(WPARAM nItem, LPARAM nSubItem)
{
CString sle = m_List.GetComboText(nItem, nSubItem);
MEvent* pm = (MEvent*)m_List.GetItemData(nItem);
if (pm)
{
CString szDisplayableResult;
pm->UpdateMeasurementInfo(ImpEditCol::m_meacolmap[nSubItem], sle, szDisplayableResult);
}
return 0;
}
示例3: UpdateValue
bool EventDlg::UpdateValue(int iEntry, int iColumnID, LPCSTR pRawString, CString& szDisplayableResult) // column id is ImpEd enum
{
// get the list entry (MEvent)
// update the relevant field on the MEvent
// return false if the value does not match the allowed data ranges
// otherwise return true so that the text can be inserted with the correct formatting in the list row subitem
MEvent* pm = (MEvent*)m_List.GetItemData(iEntry);
if (pm)
{
pm->UpdateMeasurementInfo(ImpEditCol::m_meacolmap[iColumnID], pRawString, szDisplayableResult);
}
return true;
}