add cfuction create window

add createwindow  createwindowex and constant.