char text2[64];
up = GetPixel(::GetDC(NULL),499+rect.left,589+rect.top);
//::SetCursorPos(499+rect.left,589+rect.top);
r = GetRValue(up);
g = GetGValue(up);
b = GetBValue(up);