When the button is pressed, the WM_CLOSE message is sent to the window. The condition that determines if the parent control will execute this action.