GetTextExtent(hdc, SwitchCancel(), -1, &size);这个函数可以得到字的长度
TextOut(hdc, rect.right / 4 - size.cx / 2, 222, SwitchCancel());这个算法计算出文字居中位置