LImageListControl::GetBackColor
#include "ltwrappr.h"
L_INT LImageListControl::GetBackColor(pcrBack)
/* pointer to variable to be updated */ |
Gets the current ImageList Control’s background color.
Parameter |
Description |
pcrBack |
Pointer to a variable to be updated with the background color of the control. |
Returns
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
Comments
Before using this function, you must allocate a variable of type COLORREF and pass the address of this variable in pcrBack.
The variable pointed to by pcrBack will be updated with the ImageList Control's current background 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. |
See Also
Functions: |
|
Topics: |
|
|
Example
LImageListControl m_ImgList;
// set back color to RED
COLORREF crTest;
m_ImgList.GetBackColor(&crTest);
if(crTest != RGB(255,0,0))
{
m_ImgList.SetBackColor(RGB(255,0,0));
::RedrawWindow(m_ImgList.m_hWnd, NULL, NULL, RDW_INVALIDATE);
}