static int i=0;
switch(message){
case WM_PAINT:
...
if(i<255) i++;
else if(i==255) i=0;
SetTextColor(devcont,RGB(i,127,127)); // handledevicecontext
DrawText(devcont,"Hello World",-1,&area,DT_CENTER);
...
QUESTION: How can I feed my WindowsProcedure with
new WM_PAINT messages. I've heard UpdateWindow
sends WM_PAINT messages to a window. Where must I
place UpdateWindow? Inside the message loop?
(I'm a beginner in Windows programming)