Home > Back-end > Why there is no code in window close button click event form can also be closed
Why there is no code in window close button click event form can also be closed
Time:09-16
When I click the close button, an empty form event handling process can be closed without add code how form
CodePudding user response:
Windows system to judge the mouse to click position is a close button, sends WM_CLOSE message to the application, the application of the default processing of the message is closed form,
CodePudding user response:
This is the Form of (VCL) code, and closed the Windows related code, execute the Form the Close of the event, also can send the appropriate message to the system, the system is closed related to the Form,