HBRUSH hBrush = GetClassLong (GCL_HBRBACKGROUND); if (!GetObject(hBrush, 0, 0)) { // считай, что у тебя color } else { // у тебя handle }