ComCtl32ImageList_GetIconSize Method
Retrieves the dimensions of images in an image list.
All images in an image list have the same dimensions.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("ComCtl32.dll")]
public static bool ImageList_GetIconSize(
IntPtr hImageList,
ref int refWidth,
ref int refHeight
)
<DllImportAttribute("ComCtl32.dll">]
Public Shared Function ImageList_GetIconSize (
hImageList As IntPtr,
ByRef refWidth As Integer,
ByRef refHeight As Integer
) As Boolean
Dim hImageList As IntPtr
Dim refWidth As Integer
Dim refHeight As Integer
Dim returnValue As Boolean
returnValue = ComCtl32.ImageList_GetIconSize(hImageList,
refWidth, refHeight)
public:
[DllImportAttribute(L"ComCtl32.dll")]
static bool ImageList_GetIconSize(
IntPtr hImageList,
int% refWidth,
int% refHeight
)
[<DllImportAttribute("ComCtl32.dll")>]
static member ImageList_GetIconSize :
hImageList : IntPtr *
refWidth : int byref *
refHeight : int byref -> bool
No code example is currently available or this language may not be supported.
- hImageList IntPtr
-
A handle to the image list.
- refWidth Int32
-
The width, in pixels, of each image.
- refHeight Int32
-
The height, in pixels, of each image.
Boolean
If the function succeeds, the return value is
;
otherwise, it returns
.