B+ window has a Minimize gadget

BlitzPlus Forums/BlitzPlus Programming/B+ window has a Minimize gadget

I've got the minimize button to work, but I'm having no joy with the close button. I am creating my window with the Graphics command.