Send this message to get the border color of the ImageList Control.
Ignored, use 0.
Pointer to a variable to be updated with the border color of the control.
Value | Meaning |
---|---|
SUCCESS | Function was successful |
< 0 | An error occurred. Refer to Return Codes. |
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:
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.
L_INT ILM_GETBORDERCOLORExample(HWND hCtrl)
{
if(IsWindow(hCtrl))
{
L_INT nRet;
COLORREF crBorder;
/* get current color */
nRet = (L_INT)SendMessage(hCtrl, L_ILM_GETBORDERCOLOR, 0, (LPARAM)&crBorder);
/* change it and reset */
if(crBorder != RGB(255,10,10))
crBorder = RGB(255,10,10);
nRet = (L_INT)SendMessage(hCtrl, L_ILM_SETBORDERCOLOR, 0, (LPARAM)&crBorder);
RedrawWindow(hCtrl, NULL, NULL, RDW_INVALIDATE | RDW_UPDATENOW | RDW_ERASE);
return nRet;
}
else
return ERROR_INVALID_PARAMETER;
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document