comparison 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
comparison
equal deleted inserted replaced
1463:77f530f95826 1464:e325f98a2792
1443 } 1443 }
1444 } 1444 }
1445 else 1445 else
1446 { 1446 {
1447 /* Everything else */ 1447 /* Everything else */
1448 MoveWindow(handle, currentx + pad, currenty + pad, 1448 if(*depth)
1449 width, height, FALSE); 1449 MoveWindow(handle, currentx + pad, currenty + pad, width, height, FALSE);
1450 else /* FIXME: This is a hack to generate WM_PAINT messages for items on the top-level */
1451 SetWindowPos(handle, HWND_TOP, currentx + pad, currenty + pad, width, height, 0);
1450 1452
1451 /* After placing a box... place its components */ 1453 /* After placing a box... place its components */
1452 if(thisbox->items[z].type == TYPEBOX) 1454 if(thisbox->items[z].type == TYPEBOX)
1453 { 1455 {
1454 Box *boxinfo = (Box *)GetWindowLongPtr(handle, GWLP_USERDATA); 1456 Box *boxinfo = (Box *)GetWindowLongPtr(handle, GWLP_USERDATA);