void FullScreen(bool fullscreen)

    fullscreen:
true: switch to fullscreen mode with initialized parameters in InitD3DHWND. The color depth will be the color depth of windowed mode.
    false: switch to windowed mode with last windowed state.