win32程序下设置画布大小

win32程序下设置画布大小，需要根据画布大小计算出窗口大小，然后设置正确的窗口位置和尺寸。
When set the canvas size in win32 progress. You Can`t set the window
size directly, you need calculate the window size by canvas size then
set the window`s position and size.
Selected tile changed state
synchronization