IVsResourceManager.LoadResourceIcon 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将资源图标加载到指定的包中。
public:
int LoadResourceIcon(Guid % guidPackage, int culture, System::String ^ pszResourceName, int cx, int cy, [Runtime::InteropServices::Out] IntPtr % hicoValue);
public int LoadResourceIcon (ref Guid guidPackage, int culture, string pszResourceName, int cx, int cy, out IntPtr hicoValue);
abstract member LoadResourceIcon : Guid * int * string * int * int * nativeint -> int
Public Function LoadResourceIcon (ByRef guidPackage As Guid, culture As Integer, pszResourceName As String, cx As Integer, cy As Integer, ByRef hicoValue As IntPtr) As Integer
参数
- guidPackage
- Guid
中将加载资源的包的 Guid。
- culture
- Int32
中指定资源有效的区域性的 LCID 值。 如果提供的值为0,则将选择用户在启动应用程序时选择的 LCID。
- pszResourceName
- String
中资源的名称。
- cx
- Int32
中图标的宽度。
- cy
- Int32
中图标的高度。
- hicoValue
-
IntPtr
nativeint
[out,retval]指向资源的指针。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。
注解
COM 签名
从 vsshell80:
[local] HRESULT LoadResourceIcon(
[in] REFGUID guidPackage,
[in] int culture,
[in, string] LPCOLESTR pszResourceName,
[in] int cx,
[in] int cy,
[out, retval] HICON *hicoValue
);