我的自定义绘图区的WM_PAINT看起来像这样://TRUEtoclearthebackgroundif(GetUpdateRect(hwnd,&r,TRUE)==0)return;//noupdaterect;donothingdc=BeginPaint(hwnd,&ps);//checkreturn//paintsomeRGBAimagedatawithGDI+EndPaint(hwnd,&ps);(暂时忽略向GDI+发送HDC。)我在这里使用GetUpdateRect()而不是从BeginPaint()获取更新矩形,因为我总是想在空白Canvas上绘制,尤其是因为我正在做alph