Sidebar

Using Directory Opus
Configuration
Programming
Reference Section
reference:plugins:plugin_sdk:utility_functions:dpiawareaddiconstoimagelist

DpiAwareAddIconsToImageList(
     const DPIIMAGELISTDATA*:pData,
     int:iResourceOptionCount,
     const DPIRESOURCEID*:pResourceOptions
)
→ HIMAGELIST

Arguments

pData

[in] Pointer to a DPIIMAGELISTDATA structure.

iResourceOptionCount

[in] The number of entries in the pResourceOptions array.

pResourceOptions

[in] Pointer to an array of DPIRESOURCEID structures.

Description

The DPIIMAGELISTDATA structure has the following fields (default values are set by the structure definition):

  • size_t dild_Size
    Size of the structure.
  • HIMAGELIST dild_ImageList
    Usually left NULL, to create a new one.
  • DildImageType dild_Type
    Image type: DILD_PNG (default), DILD_JPG or DILD_BMP.
  • HMODULE dild_Module
  • int dild_ImageCount
  • int dild_Grow
  • UINT dild_ILFlags
    Usually left 0, where Opus will pick sensible defaults. Can be set to flags passed to Win32 ImageList_Create.
  • COLORREF dild_MaskColor
    Default RGB(255,0,255).
  • COLORREF dild_RecolorColor
    Default CLR_NONE.
  • BOOL dild_RecolorForGlyph

The DPIRESOURCEID structure has the following fields:

  • int dri_OriginalScaleFactor
    DPI % of the original image (default 100).
  • int dri_ResourceId
    The resource ID.