interop::GetIconFromIconId function (winrt-microsoft.ui.interop.h)
Gets the icon handle that corresponds to the specified iconId, if the provided iconId is valid and the system has an HICON
that represents the icon.
Note
This API is declare in the Microsoft.UI.Interop.h
header file that's in the Windows App SDK's \include\winrt
folder.
C#. For C# desktop application developers, the interop functions in this header are wrapped by the methods of the Microsoft.UI.Win32Interop class.
Syntax
HICON GetIconFromIconId(
const winrt::Microsoft::UI::IconId & iconId
);
Parameters
iconId
Type: const IconId &
The identifier for the icon.
Return value
Type: HICON
The icon handle that corresponds to the specified iconId, if the provided iconId is valid and the system has an HICON
that represents the icon. Otherwise, null
.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10, version 1809 (with Windows App SDK 1.0 or later) |
Header | winrt-microsoft.ui.interop.h |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for