GetCurrentObject(hdc,OBJ_BITMAP) should not return zero.