L_ILM_GETBORDERCOLOR

Send this message to get the border color of the ImageList Control.

Parameter

Description

wParam

Ignored, use 0.

lParam

Pointer to a variable to be updated with the border color of the control.

 

Returns

SUCCESS

Function was successful

< 0

An error occurred. Refer to Return Codes.

Comments

Before using this message, you must allocate a variable of type COLORREF and pass the address of this variable in lParam.

The variable pointed to by lParam will be updated with the ImageList Control's current border color.

The associated macro is:

L_ImgListGetBorderColor(hWnd, pcrBorder)

Note: Border Color only has an effect when the ImageList Control's window includes the WS_BORDER window style, and does not include the WS_EX_CLIENTEDGE

For a complete list of available macros, refer to the Ltlst.h file.

See Also

Elements:

L_ILM_SETBORDERCOLOR, L_ILM_GETBACKCOLOR, L_ILM_SETBACKCOLOR, L_ILM_GETSELOPTIONS, L_ILM_GETITEMOPTIONS

Topics:

Using the ImageList Control

 

Image List Control Messages

 

Using Color Values in LEADTOOLS

Example

L_VOID TestFunc8(HWND hWnd)
{
   LRESULT lRet;
   COLORREF crBorder;
   if(IsWindow(hWnd))
   {
      /* get current color */
      lRet = SendMessage(hWnd, L_ILM_GETBORDERCOLOR, 0, (LPARAM)&crBorder);
      /* change it and reset */
      if(crBorder != RGB(255,10,10))
         crBorder = RGB(255,10,10);
      lRet = SendMessage(hWnd, L_ILM_SETBORDERCOLOR, 0, (LPARAM)&crBorder);
      RedrawWindow(hWnd, NULL, NULL, RDW_INVALIDATE | RDW_UPDATENOW | 
RDW_ERASE);
   }
}