GetDC和ReleaseDC必须成对出现;不能在响应WM_PAINT中使用,只能在其他地方使用。 BeginPaint和EndPaint必须成对出现,且BeginPaint和EndPaint只能出现在WM_PAINT中。