Modify project build options and correct frame

Modify the include file and lib file to absolute path and correct
OnOpenFile function, finally add tmp*.png to  .gitignore