The way I use is: GetPixel (x,y) // member of CDC
Example:
CDC* pDC=GetDC();
LONG pixel;
pDC->GetPixel (10,10 );
that's what I use in my MFC programs when I need a simple function.
For the color value use: GetRValue, GetBValue, GetGValue ... in relation to the pixel value.
Hope I could help you !
regards,
SAM