Gets the current background color.
#include "ltvkrn.h"
L_LVKRN_API L_COLORREF L_VecGetBackgroundColor(pVector)
Pointer to a vector handle.
COLORREF value of the current background color.
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.
This example will get the current background color and display its RGB values in a message box.
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;
}