add resources; add WIN32 flags in cmakelists.txt
add rc file
remove OnPaint func