Mercurial > dwindows
diff win/dw.c @ 1464:e325f98a2792
FIXME: Workaround for items on the top-level not getting WM_PAINT messages on Windows.
This is not a proper fix to the issue; when a better solution is possible please replace!
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sat, 17 Dec 2011 13:02:54 +0000 |
parents | 6bf5dc7da45d |
children | 91bdd9840b9f |
line wrap: on
line diff
--- a/win/dw.c Sat Dec 17 11:34:25 2011 +0000 +++ b/win/dw.c Sat Dec 17 13:02:54 2011 +0000 @@ -1445,8 +1445,10 @@ else { /* Everything else */ - MoveWindow(handle, currentx + pad, currenty + pad, - width, height, FALSE); + if(*depth) + MoveWindow(handle, currentx + pad, currenty + pad, width, height, FALSE); + else /* FIXME: This is a hack to generate WM_PAINT messages for items on the top-level */ + SetWindowPos(handle, HWND_TOP, currentx + pad, currenty + pad, width, height, 0); /* After placing a box... place its components */ if(thisbox->items[z].type == TYPEBOX)