tags:

views:

39

answers:

2

How to programmatically send WM_PAINT from my c++ program?

+2  A: 

InvalidateRect()

usta
Yes, and if you want to ensure the paint is done before the code continues you need to call `UpdateWindow()` as well.
jdv
@jdv Yep, thanks for the comment :)
usta
+2  A: 

SendMessage(...)

Can also be used to send messages to other processes (Inter Process Communication)

sum1stolemyname