john pfeiffer
  • Home
  • Categories
  • Tags
  • Archives

Win CE Initialize Color

#define  COLORMAX    8

long currentForegroundColor[ COLORMAX ] ;
int currentForegroundColorIndex;
long currentBackgroundColor[ COLORMAX ] ;
int currentBackgroundColorIndex;

void colorInitialize ( long currentColor[ COLORMAX ]  )
{ /* BLACK TO WHITE */  
    currentColor[0] = RGB( 0 , 0 , 0 );
    currentColor[1] = RGB( 255 , 0 , 0 );
    currentColor[2] = RGB( 0 , 255 , 0);
    currentColor[3] = RGB( 0 , 0 , 255 );
    currentColor[4] = RGB( 255 , 255 , 0 );
    currentColor[5] = RGB( 0 , 255 , 255 );
    currentColor[6] = RGB( 255 , 0 , 255 );
    currentColor[7] = RGB( 255 , 255 , 255 );

}/* end function colorInitialize */

  • « Win CE Input Keyboard
  • Win CE draw rectangle »

Published

Aug 1, 2010

Category

c

~64 words

Tags

  • convert-to-win32 13
  • initializecolor 1
  • win-ce 40