Borland C ++에서 주요 양식 폐쇄를 비활성화하는 방법
-
06-09-2019 - |
문제
When closing an application on close button (FormClose handler is called), there is a dialog if user is sure that he wants to close the application. If the result of the dialog is mrCancel, then I try to set the ModalResult of a main form to mrNone like I do with other forms, but even though, the application still closes. What is the solution? Cheers.
해결책
양식에서 FormCloseQuery
, 세트 CanClose
거짓.
제휴하지 않습니다 StackOverflow