MCPcopy Create free account
hub / github.com/WinMerge/winmerge / GetPropertyType

Method GetPropertyType

Src/PropertySystem.cpp:257–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255}
256
257bool PropertySystem::GetPropertyType(unsigned index, VARTYPE& vt) const
258{
259 if (index >= m_keys.size())
260 return false;
261 bool result = false;
262 IPropertyDescription* ppd = nullptr;
263 if (SUCCEEDED(PSGetPropertyDescription(m_keys[index], IID_PPV_ARGS(&ppd))))
264 {
265 if (SUCCEEDED(ppd->GetPropertyType(&vt)))
266 result = true;
267 ppd->Release();
268 }
269 return result;
270}
271
272String PropertySystem::FormatPropertyValue(const PropertyValues& values, unsigned index)
273{

Callers 2

OnInitDialogMethod · 0.80
ShowPropMenuMethod · 0.80

Calls 3

SUCCEEDEDFunction · 0.85
sizeMethod · 0.45
ReleaseMethod · 0.45

Tested by

no test coverage detected