How to close the frame window using a button?

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • How to close the frame window using a button?

    Hi,
    How to close a frame window using a button other than the one which appears in the title bar ?
    i want to place a button at the bottom of the frame window, and i want to close the window when user clicks that button.
  • Hello,

    Please make use of the messages WM_NOTIFY_PARENT and WM_NOTIFICATION_RELEASED which are sent to the client window of the dialog. The client window of the dialog is the parent window of the BUTTON widget. Those notifications enable you to control the dialog according to actions performed with the included widgets.

    For details please refer to the emWin user manual.

    Best regards,
    Adrian