Painting without WM_PAINT
C / C++ / MFC
5
Posts
3
Posters
0
Views
1
Watching
-
Do you mean without sending
WM_PAINT
message or without handlingWM_PAINT
event? ARSALAN MALIK -
Do you mean without sending
WM_PAINT
message or without handlingWM_PAINT
event? ARSALAN MALIK -
You can get pointer to device context (CDC) by using any of these functions:
GetClientDC(), GetPaintDC()
. You will not need to send/handleWM_PAINT
message:) ARSALAN MALIK -
dipeka wrote: Is there a way to paint pictures without using WM_PAINT. Probably handle WM_PAINT as usual. When you need something repainted then invalidate that area (or the whole client area) and your paint handler will do the rest. But I am not so sure what you try to achieve. In Win32
InvalidateRect() UpdateWindow()
that is. /Moak