add WNDCLASS
add register window sample