views:

493

answers:

2
A: 

Do you return 0 after doing the WM_PAINT handling? Beyond that ... show us your wndprocs and your Create and your RegisterClass calls.

Goz
Yes, it returns 0
Ian_K
+1  A: 

You should be calling BeginPaint and EndPaint in response to the WM_PAINT message to validate the window. Otherwise, the system thinks that your window has not been painted and so it will send the paint message again (and again). See the Microsoft documentation.

jdigital