changeset 1680:b09f5f73189c

On OS/2 and Windows need to use the parent (box) handle not the item handle to trigger window redrawing.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sat, 28 Apr 2012 17:06:20 +0000
parents e19b93a8229b
children e02101d1b8ba
files os2/dw.c win/dw.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/os2/dw.c	Fri Apr 27 16:02:32 2012 +0000
+++ b/os2/dw.c	Sat Apr 28 17:06:20 2012 +0000
@@ -7247,7 +7247,7 @@
          if(handle)
             WinSetParent(handle, HWND_OBJECT, FALSE);
          /* Queue a redraw on the top-level window */
-         _dw_redraw(_toplevel_window(handle), TRUE);
+         _dw_redraw(_toplevel_window(parent), TRUE);
          return DW_ERROR_NONE;
       }
    }
--- a/win/dw.c	Fri Apr 27 16:02:32 2012 +0000
+++ b/win/dw.c	Sat Apr 28 17:06:20 2012 +0000
@@ -7021,7 +7021,7 @@
          thisbox->count--;
          SetParent(handle, DW_HWND_OBJECT);
          /* Queue a redraw on the top-level window */
-         _dw_redraw(_toplevel_window(handle), TRUE);
+         _dw_redraw(_toplevel_window(parent), TRUE);
          return DW_ERROR_NONE;
       }
    }