Re-initialising DIALOG???

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

  • Re-initialising DIALOG???

    Dear all

    Is it possible to reinitialise Dialog such that WM_INIT_DIALOG message is sent again? Basically what I want to do is create a dialog, then hide it and then reopen it with new init params.

    Thanks
  • Hi,

    You can call WM_SendMessageNoPara(hDialog, WM_INIT_DIALOG) and the dialog will receive WM_INIT_DIALOG again. But take care that you don't create widgets multiple time. For example, if you call WM_CreateWindow() inside WM_INIT_DIALOG.

    Another way might be to delete the dialog and create it again.

    Regards
    Sven
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.