"Katia Maculan" katia.maculan@isis-papyrus.com wrote:
- switch (message)
- {
- case WM_SHOWWINDOW:
- case WM_SIZE:
- DefWindowProc(hWnd, message, wParam, lParam);
- PostMessage (hWnd, WM_PAINT, 0, 0);
If you wish to schedule a WM_PAINT message you have to invalidate a window.
Dmitry Timoshkov wrote:
"Katia Maculan" katia.maculan@isis-papyrus.com wrote:
- switch (message)
- {
- case WM_SHOWWINDOW:
- case WM_SIZE:
- DefWindowProc(hWnd, message, wParam, lParam);
- PostMessage (hWnd, WM_PAINT, 0, 0);
If you wish to schedule a WM_PAINT message you have to invalidate a window.
You are right but with an InvalidateRect a WM_PAINT is not generated I think for another problem. Katia