[Win32 API] LoadIcon Function
Load the specified icon resource.
Syntax
HICON WINAPI LoadIcon(
__in_opt HINSTANCE hInstance,
__in LPCTSTR lpIconName
);
Parameters
- hInstance[optional] : A handle to an instance of the module whose executable file contains the icon to be loaded. This parameter must be NULL when a standard icon is being loaded.
- lpIconName : The name of the icon resource to be loaded. To use one of the predefined icons, one of the follow values.
Return Value
HICON
if the function succeeds, the reuturn value is a handle to the newly loaded icon
if the function fails, the return value is NULL. To get extended error information, cal GetLastError.
Reference :http://msdn.microsoft.com/en-us/library/ms648029(v=VS.85).aspx
Reference :http://msdn.microsoft.com/en-us/library/ms648029(v=VS.85).aspx
댓글
댓글 쓰기