#include "ltwrappr.h"
L_INT LImageListControl::GetBorderColor(pcrBorder)
COLORREF * pcrBorder; |
pointer to variable to be updated |
Gets the current ImageList Controls border color.
Parameter |
Description |
pcrBorder |
Pointer to a variable to be updated with the border color of the control. |
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
Before using this function, you must allocate a variable of type COLORREF and pass the address of this variable in pcrBorder.
The variable pointed to by pcrBorder will be updated with the ImageList Control's current border color.
Required DLLs and Libraries
LTDIS For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. |
Win32, x64.
Functions: |
|
Topics: |
|
|
L_INT LImageListControl__GetBorderColorExample(HWND hParent)
{
L_INT nRet;
LImageListControl m_ImgList;
// set border color to GREEN
COLORREF crTest;
if(m_ImgList.CreateControl(hParent,0) == NULL)
return FAILURE;
nRet = m_ImgList.GetBorderColor(&crTest);
if(nRet != SUCCESS)
return nRet;
if(crTest != RGB(0,255,0))
{
nRet = m_ImgList.SetBorderColor(RGB(0,255,0));
if(nRet != SUCCESS)
return nRet;
::RedrawWindow(m_ImgList.m_hWnd, NULL, NULL, RDW_INVALIDATE);
}
return SUCCESS;
}
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