MCPcopy Create free account
hub / github.com/clechasseur/pathcopycopy / UseDefaultIcon

Method UseDefaultIcon

PathCopyCopy/plugins/src/COMPlugin.cpp:173–186  ·  view source on GitHub ↗

Determines if we should use the default icon for this plugin. @return true to use default icon, false otherwise.

Source from the content-addressed store, hash-verified

171 // @return true to use default icon, false otherwise.
172 //
173 bool COMPlugin::UseDefaultIcon() const
174 {
175 // Check if plugin supports specifying an icon. Otherwise return false.
176 bool useDefault = false;
177 if (m_cpPluginIcon != nullptr) {
178 // Ask plugin whether to use default icon.
179 VARIANT_BOOL useDefaultVar = VARIANT_FALSE;
180 const HRESULT hRes = m_cpPluginIcon->get_UseDefaultIcon(&useDefaultVar);
181 if (SUCCEEDED(hRes)) {
182 useDefault = useDefaultVar != VARIANT_FALSE;
183 }
184 }
185 return useDefault;
186 }
187
188 //
189 // Returns whether plugin should be enabled in the contextual menu.

Callers

nothing calls this directly

Calls 1

get_UseDefaultIconMethod · 0.45

Tested by

no test coverage detected