L_VecGetBackgroundColor

#include "ltvkrn.h"

L_LTVKRN_API L_COLORREF L_VecGetBackgroundColor(pVector)

Gets the current background color.

Parameters

const pVECTORHANDLE pVector

Pointer to a vector handle.

Returns

COLORREF value of the current background color.

Comments

This function returns the current background color. If L_VecPaint is called with the bEraseBkgnd parameter set t o TRUE, this is the color that is used to erase the background.

Required DLLs and Libraries

See Also

Functions

  • L_VecSetBackgroundColor
  • L_VecPaint
  • L_VecAttachToWindow

Example

This example will get the current background color and display its RGB values in a message box.

L_LTVKRNTEX_API L_INT VecGetBackgroundColorExample(pVECTORHANDLE pVector) 
{ 
   COLORREF  color;            /* Background color */ 
   L_TCHAR   szBuffer[ 80 ];   /* Buffer */ 
 
   /* Get background color */ 
   color = L_VecGetBackgroundColor( pVector ); 
 
   /* Show it in a message box */ 
   wsprintf( szBuffer, TEXT("%02x, %02x, %02x"), 
             GetRValue( color ), GetGValue( color ), GetBValue( color ) ); 
                
   MessageBox( NULL, szBuffer, TEXT("Background Color"), 0 ); 
 
   return SUCCESS; 
} 

Help Version 21.0.2021.4.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Vector C API Help