[LIB] HD_EX - some functions to use with header controls

Post your working scripts, libraries and tools for AHK v1.1 and older
just me
Posts: 9458
Joined: 02 Oct 2013, 08:51
Location: Germany

[LIB] HD_EX - some functions to use with header controls

23 Jan 2014, 02:49

Although AHK does not support it, header controls are implemented as autonomous controls. This lib provides some functions which can be used with stand-alone as well as child header controls (e.g. the headers of ListView controls) in AHK GUIs:

Function list:
  • HD_EX_Insert()
    Inserts a new item into a header control.
  • HD_EX_CreateHDITEM()
    Creates a HDITEM structure - for internal use!!!
  • HD_EX_Delete()
    Deletes the specified item from a header control.
  • HD_EX_GetCount()
    Gets the count of the items in a header control.
  • HD_EX_GetData()
    Gets the application-defined data (lParam) of the specified item.
  • HD_EX_GetFormat()
    Gets the format of the specified item.
  • HD_EX_GetRect()
    Gets the bounding rectangle for a given item in a header control.
  • HD_EX_SetBitmap()
    Assigns a bitmap to the specified item.
  • HD_EX_SetBitmapMargin()
    Sets the width of the margin, specified in pixels, of a bitmap in a header control.
  • HD_EX_SetData()
    Sets application-defined data (lParam) of the specified item.
  • HD_EX_SetFormat()
    Sets the format of the specified item.
  • HD_EX_SetImage()
    Sets an image from the header's image list for the specified item.
  • HD_EX_SetImageList()
    Assigns an image list to a header control.
The sample script HD_Test.ahk implements an autonomous header control as a Custom Control which might be called 'ButtonBar':
HD_EX.png
:arrow: Download from GitHub.

Return to “Scripts and Functions (v1)”

Who is online

Users browsing this forum: No registered users and 188 guests