Added simple WM_PAINT support.

Added structures, functions, definitions and macros in order to support
adding WM_PAINT handling in order to modify simple window into a simple
hello world example.