LImageListControl::GetBorderColor

Summary

Gets the current ImageList Controls border color.

Syntax

#include "ltwrappr.h"

L_INT LImageListControl::GetBorderColor(pcrBorder)

Parameters

COLORREF * pcrBorder

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

Returns

Value Meaning
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 pcrBorder.

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

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Functions

Topics

Example

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 Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C++ Class Library Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.