使用DrawText显示文本文字的时候为什么字一直闪
case WM_PAINT:
HDC hDC;
RECT rect;
char output[256];
GetClientRect(hWnd,&rect);
hDC=GetDC(hWnd);
sprintf(output,"\n\n\n\n%s\n%s\n%s","&1、This is the first line!",
"&2、This is the second line!","&3、This is the third line!");
DrawText(hDC,output,strlen(output),&rect,DT_CENTER);
ReleaseDC(hWnd,hDC);
break;
这段代码运行后,显示的文字一直闪,这是什么原因呢?