#pragma once #include "StdAfx.h" #include "SigmaView.h" #include "sigmadoc.h" #include "ItemMeasure.h" extern "C" __declspec(dllexport) BSTR GetMeasureInfo(CSigmaView* pView) { tl::expected itemMeasure = TryGetItemCast(pView); if (itemMeasure) { return itemMeasure.value()->GetCurrentInfo().AllocSysString(); } return CString().AllocSysString(); }