返回

DirtyRect消息部分应该是 case WM_PAINT: BeginPaint(hWnd, NULL); canvas_redraw(g_canvas); EndPaint(hWnd, NULL); break;如果没有BeginPaint和EndPaint, 会导致WM_PAINT消息永远遗留在消息队列中就会造成程序总是全屏重画。

名字: 自动排版 密码:

回复 | (1730) | asprite | 2007-12-07 04:39:22