SetWindowBorder ( win, flag )

Turns border on if true and off if false

Example: