ISDBApplication::RegisterIconHandle: Difference between revisions

From MediaMonkey Wiki
Jump to navigation Jump to search
No edit summary
 
 
(One intermediate revision by the same user not shown)
Line 10: Line 10:


Adds an icon that can be later used either in menu ([[ISDBMenuItem::IconIndex]]) or in tree ([[ISDBTreeNode::IconIndex]]).
Adds an icon that can be later used either in menu ([[ISDBMenuItem::IconIndex]]) or in tree ([[ISDBTreeNode::IconIndex]]).
Returns a positive integer that is used as an identification of the icon. Return -1 if any problem occurs.
This method isn't supposed to be used in scripts, it's rather for plug-ins and other products accessing MM COM objects that use handles for icons.


[[Category:Scripting|{{PAGENAME}}]]
[[Category:Scripting|{{PAGENAME}}]]

Latest revision as of 08:57, 8 May 2007

CoClass SDBApplication, Interface ISDBApplication

Function RegisterIconHandle(IconHandle As Long, IconType As Long) As Long


Parameters

Name Type Description
IconHandle Long Handle of the icon to be used.
IconType Long Either 0(Menu icon) or 1(Tree icon).


Method description

Adds an icon that can be later used either in menu (ISDBMenuItem::IconIndex) or in tree (ISDBTreeNode::IconIndex).

Returns a positive integer that is used as an identification of the icon. Return -1 if any problem occurs.

This method isn't supposed to be used in scripts, it's rather for plug-ins and other products accessing MM COM objects that use handles for icons.