Mercurial > dwindows
comparison win/dw.c @ 1441:b9577d1f0411
Removed some debug code on Windows and updated the layout code in the template.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 08 Dec 2011 11:43:28 +0000 |
parents | c50f445e891a |
children | 02a329b2b0cd |
comparison
equal
deleted
inserted
replaced
1440:c50f445e891a | 1441:b9577d1f0411 |
---|---|
1297 } | 1297 } |
1298 else | 1298 else |
1299 height = y - (itempad + thispad + thisbox->grouppady); | 1299 height = y - (itempad + thispad + thisbox->grouppady); |
1300 } | 1300 } |
1301 | 1301 |
1302 if(width < 1 || height < 1) | |
1303 { | |
1304 char tmpbuf[100]; | |
1305 | |
1306 GetClassName(thisbox->items[z].hwnd, tmpbuf, 99); | |
1307 dw_debug("Class %s %dx%d width %d height %d\n", tmpbuf, currentx + thisbox->items[z].pad, currenty + thisbox->items[z].pad, width, height); | |
1308 } | |
1309 | |
1310 /* If the calculated size is valid... */ | 1302 /* If the calculated size is valid... */ |
1311 if(width > 0 && height > 0) | 1303 if(width > 0 && height > 0) |
1312 { | 1304 { |
1313 int pad = thisbox->items[z].pad; | 1305 int pad = thisbox->items[z].pad; |
1314 HWND handle = thisbox->items[z].hwnd; | 1306 HWND handle = thisbox->items[z].hwnd; |
1315 char tmpbuf[100]; | 1307 char tmpbuf[100]; |
1316 | 1308 |
1317 GetClassName(handle, tmpbuf, 99); | 1309 GetClassName(handle, tmpbuf, 99); |
1318 dw_debug("Class %s %dx%d width %d height %d\n", tmpbuf, currentx + pad, currenty + pad, width, height); | |
1319 | 1310 |
1320 if(strnicmp(tmpbuf, COMBOBOXCLASSNAME, strlen(COMBOBOXCLASSNAME)+1)==0) | 1311 if(strnicmp(tmpbuf, COMBOBOXCLASSNAME, strlen(COMBOBOXCLASSNAME)+1)==0) |
1321 { | 1312 { |
1322 /* Handle special case Combobox */ | 1313 /* Handle special case Combobox */ |
1323 MoveWindow(handle, currentx + pad, currenty + pad, | 1314 MoveWindow(handle, currentx + pad, currenty + pad, |