Painting problems with a PocketPC Today Screen plugin

The code for the sample Today Screen plugin that ships with the Pocket PC 2003 SDK has a bug in it which a number of people have been hitting.  The code calls DefWindowProc after handling WM_PAINT, which it should not do.  It should simply return zero after doing its painting. 

This bug can result in incorrect painting; specifically, you will get a WM_ERASEBACKGROUND without a subsequent WM_PAINT, which will cause your plugin to "disappear".

(This will be fixed in the next version of the SDK.)

[Author: Jason Fuller]