Why child window preserves what was drawn by the grandparent?

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

  • Why child window preserves what was drawn by the grandparent?

    Dear all

    I created a child window and I called GUI_Clear() in WM_PAINT of the parent window hoping that it would clear the background of the child window. What happens is the parent window gets cleared leaving a hole in the place where the child window is. Why child window preserves what was drawn by the grandparent?

    Thanks
  • Hi,

    Please take a look into the manual at chapter 18.2 'Callback mechanism, invalidation, rendering and keyboard input'.

    The tilling mechanism is the reason why it is not working as you expect. To save resources the area of the child window gets skipped. In a lot of cases it is not necessary to redraw the child window if the parent gets redrawn.

    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.