2

I want to treat WM_PAINT message. But at first, I want to let system to do the default drawing, then I draw something else manually.

For example:

    case WM_PAINT:
        CallWindowProc(DefWndProcTabControl, hwnd, message, wParam, lParam);
        TabControlOnPaint(hwnd);
        return 0;

This works, but is not very good, since it flicks.

One possibility is to make the default drawing done in a memory DC. But I don't know how to do this if I use CallWindowProc(DefWndProcTabControl...).

Any suggestion for this?

4

1 回答 1

4

如果您正在绘制的窗口支持它,请使用WM_PRINTWM_PRINTCLIENT将默认绘制到内存 DC 中。

(尝试通过这种CallWindowProc方式不太可能奏效。)

于 2013-04-20T19:47:58.567 回答