Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
The Bitmap::FromHICON method creates a Bitmap object based on a handle to an icon.
Syntax
Bitmap * FromHICON(
  [in] HICON hicon
);
Parameters
[in] hicon
Type: HICON
Handle to a GDI icon.
Return value
Type: Bitmap*
This method returns a pointer to the new Bitmap object.
Requirements
| Requirement | Value | 
|---|---|
| Minimum supported client | Windows XP, Windows 2000 Professional [desktop apps only] | 
| Minimum supported server | Windows 2000 Server [desktop apps only] | 
| Target Platform | Windows | 
| Header | gdiplusheaders.h (include Gdiplus.h) | 
| Library | Gdiplus.lib | 
| DLL | Gdiplus.dll |