how to disable close botton ie (X)

hi All

how do i disable the close button on thw window.I do not want to return false from the method canClose to do this. Is there any other way to do it.