详细描述
函数
|
Bool
|
RegisterIcon
(
Int32
lIconID,
BaseBitmap
*pBmp,
Int32
x=0,
Int32
y=0,
Int32
w=-1,
Int32
h=-1,
ICONFLAG
lFlags=
ICONFLAG::NONE
)
|
Bool
|
RegisterIcon
(
Int32
lIconID,
Filename
fn,
Int32
x=0,
Int32
y=0,
Int32
w=-1,
Int32
h=-1,
ICONFLAG
lFlags=
ICONFLAG::NONE
)
|
Bool
|
GetIcon
(
Int32
lIconID,
IconData
*pData)
|
Bool
|
UnregisterIcon
(
Int32
lIconID)
|
Macro Definition Documentation
◆
LIBRARY_ICON_COLLECTION
#define LIBRARY_ICON_COLLECTION
|
Icon collection library ID.
Function Documentation
◆
RegisterIcon()
[1/2]
Registers an icon from a bitmap.
Optionally a sub-icon can be specified within a larger image by giving a rectangle from (
x
,
y
) to (
x
+
w
,
y
+
h
).
If no rectangle is specified the whole bitmap is used.
-
警告
-
Unless
ICONFLAG::COPY
is set make sure that
pBmp
points to a bitmap that will always be available.
-
参数
-
[in]
|
lIconID
|
A unique plugin ID. Must be obtained from
http://www.plugincafe.com
|
[in]
|
pBmp
|
The bitmap to use for the icon. The caller owns the pointed bitmap.
|
[in]
|
x
|
Optional X coordinate of the top left corner of the sub-icon rectangle.
|
[in]
|
y
|
Optional Y coordinate of the top left corner of the sub-icon rectangle.
|
[in]
|
w
|
Optional width of the sub-icon rectangle.
|
[in]
|
h
|
Optional height of the sub-icon rectangle.
|
[in]
|
lFlags
|
The flags:
ICONFLAG
|
-
返回
-
true
if the icon was registered, otherwise
false
.
◆
RegisterIcon()
[2/2]
Registers an icon from an image file.
Optionally a sub-icon can be specified within a larger image by giving a rectangle from (
x
,
y
) to (
x
+
w
,
y
+
h
).
If no rectangle is specified the whole bitmap is used.
-
参数
-
[in]
|
lIconID
|
A unique plugin ID. Must be obtained from
http://www.plugincafe.com
|
[in]
|
fn
|
The filename of the image file to use for the icon.
|
[in]
|
x
|
Optional X coordinate of the top left corner of the sub-icon rectangle.
|
[in]
|
y
|
Optional Y coordinate of the top left corner of the sub-icon rectangle.
|
[in]
|
w
|
Optional width of the sub-icon rectangle.
|
[in]
|
h
|
Optional height of the sub-icon rectangle.
|
[in]
|
lFlags
|
The flags:
ICONFLAG
|
-
返回
-
true
if the icon was registered, otherwise
false
.
◆
GetIcon()
Retrieves an icon registered with
RegisterIcon()
.
-
参数
-
[in]
|
lIconID
|
The ID of the icon.
|
[in,out]
|
pData
|
Filled with information about the found icon. The caller owns the pointed icon data.
|
-
返回
-
true
if the icon data was retrieved, otherwise
false
.
◆
UnregisterIcon()
Unregisters an icon registered with
RegisterIcon()
.
-
参数
-
[in]
|
lIconID
|
The ID of the icon.
|
-
返回
-
true
if the icon was unregistered, otherwise
false
.