Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

ImageList_DrawEx (comctl32)
 
.
Summary
Draws an image list item in the specified device context.

C# Signature:

/// <summary>
/// Draws an image list item in the specified device context.
/// </summary>
/// <param name="himl">
/// Handle to the image list.
/// </param>
/// <param name="i">
/// Index of the image to draw.
/// </param>
/// <param name="hdcDst">
/// Handle to the destination device context.
/// </param>
/// <param name="x">
/// X-coordinate at which to draw within the specified device context.
/// </param>
/// <param name="y">
/// Y-coordinate at which to draw within the specified device context.
/// </param>
/// <param name="dx">
/// Width of the portion of the image to draw relative to the upper-left corner of the image. If dx and dy are zero, the function draws the entire  image. The function does not ensure that the parameters are valid.
/// </param>
/// <param name="dy">
/// Height of the portion of the image to draw, relative to the upper-left corner of the image. If dx and dy are zero, the function draws the entire  image. The function does not ensure that the parameters are valid.
/// </param>
/// <param name="rgbBk">
/// Background color of the image.
/// </param>
/// <param name="rgbFg">
/// Foreground color of the image.
/// </param>
/// <param name="fStyle">
/// Drawing style and, optionally, the overlay image.
/// </param>
/// <returns>
/// Returns nonzero if successful, or zero otherwise.
/// </returns>
[DllImport("comctl32.dll", SetLastError=true)]
static extern bool ImageList_DrawEx(IntPtr himl, int i, IntPtr hdcDst, int x, int y, int dx, int dy, int rgbBk, int rgbFg, int fStyle);

VB Signature:

Declare Function ImageList_DrawEx Lib "comctl32.dll" (TODO) As TODO

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation

Please edit this page!

Do you have...

  • helpful tips or sample code to share for using this API in managed code?
  • corrections to the existing content?
  • variations of the signature you want to share?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).

 
Access PInvoke.net directly from VS:
Terms of Use
Find References
Show Printable Version
Revisions