Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.24
LEADTOOLS Raster imaging C++ Class library help

LImageListControl::GetBackColor

Show in webframe

#include "ltwrappr.h"

L_INT LImageListControl::GetBackColor(pcrBack)

COLORREF * pcrBack;

/* pointer to variable to be updated */

Gets the current ImageList Controls 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
LTFIL
LTIMG

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

Platforms

Win32, x64.

See Also

Functions:

Class Members

Topics:

Using the ImageList Control

 

Using Color Values in LEADTOOLS

Example

L_INT LImageListControl__GetBackColorExample(HWND hParent)
{
   L_INT nRet;
   LImageListControl m_ImgList;
   // set back color to RED
   COLORREF crTest;
   if(m_ImgList.CreateControl(hParent,0) == NULL)
      return FAILURE;
   nRet = m_ImgList.GetBackColor(&crTest);
   if(nRet != SUCCESS)
      return nRet;
   if(crTest != RGB(255,0,0))
   {
      nRet = m_ImgList.SetBackColor(RGB(255,0,0));
      if(nRet != SUCCESS)
         return nRet;
      ::RedrawWindow(m_ImgList.m_hWnd, NULL, NULL, RDW_INVALIDATE);
   }
   return SUCCESS;
}
Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.