WM_DeleteWindow question

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

  • WM_DeleteWindow question

    Hello,

    Is it possible to DeleteWindows during your creation like the following code?

    hWin = pMsg->hWin;
    switch (pMsg->MsgId)
    {
    case WM_INIT_DIALOG:
    WM_DeleteWindow(hWin);
    break;



    default:
    WM_DefaultProc(pMsg);

    }
  • Hi,

    No, this is not possible. If you try to do it, your application will crash.

    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.