You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
395 B
C++
18 lines
395 B
C++
#pragma once
|
|
|
|
#include "StdAfx.h"
|
|
#include "SigmaView.h"
|
|
#include "sigmadoc.h"
|
|
#include "ItemMeasure.h"
|
|
|
|
extern "C" __declspec(dllexport)
|
|
BSTR GetMeasureInfo(CSigmaView* pView)
|
|
{
|
|
tl::expected<CItemMeasure*, CString> itemMeasure = TryGetItemCast<CItemMeasure>(pView);
|
|
if (itemMeasure)
|
|
{
|
|
return itemMeasure.value()->GetCurrentInfo().AllocSysString();
|
|
}
|
|
return CString().AllocSysString();
|
|
}
|