Mercurial > dwindows
changeset 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 | 77f530f95826 |
children | 0f9c6f7636db |
files | win/dw.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
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)