comparison win/dw.c @ 440:9af47c551a56

Noticed an artifact from the OS/2 port that was incorrect.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 29 May 2003 18:38:49 +0000
parents 7f39be80dec3
children faaeec0dba1d
comparison
equal deleted inserted replaced
439:7f39be80dec3 440:9af47c551a56
4751 if(vsize && !height) 4751 if(vsize && !height)
4752 height = 1; 4752 height = 1;
4753 if(hsize && !width) 4753 if(hsize && !width)
4754 width = 1; 4754 width = 1;
4755 4755
4756 if(strnicmp(tmpbuf, FRAMECLASSNAME, 2)==0) 4756 if(strnicmp(tmpbuf, FRAMECLASSNAME, strlen(FRAMECLASSNAME)+1)==0)
4757 tmpitem[thisbox->count].type = TYPEBOX; 4757 tmpitem[thisbox->count].type = TYPEBOX;
4758 else 4758 else
4759 { 4759 {
4760 if ( width == 0 && hsize == FALSE ) 4760 if ( width == 0 && hsize == FALSE )
4761 dw_messagebox("dw_box_pack_start()", DW_MB_OK|DW_MB_ERROR, "Width and expand Horizonal both unset for box: %x item: %x",box,item); 4761 dw_messagebox("dw_box_pack_start()", DW_MB_OK|DW_MB_ERROR, "Width and expand Horizonal both unset for box: %x item: %x",box,item);
4785 free(thisitem); 4785 free(thisitem);
4786 4786
4787 thisbox->count++; 4787 thisbox->count++;
4788 4788
4789 SetParent(item, box); 4789 SetParent(item, box);
4790 if(strncmp(tmpbuf, UPDOWN_CLASS, strlen(UPDOWN_CLASS))==0) 4790 if(strncmp(tmpbuf, UPDOWN_CLASS, strlen(UPDOWN_CLASS)+1)==0)
4791 { 4791 {
4792 ColorInfo *cinfo = (ColorInfo *)GetWindowLong(item, GWL_USERDATA); 4792 ColorInfo *cinfo = (ColorInfo *)GetWindowLong(item, GWL_USERDATA);
4793 4793
4794 if(cinfo) 4794 if(cinfo)
4795 { 4795 {
7550 if(vsize && !height) 7550 if(vsize && !height)
7551 height = 1; 7551 height = 1;
7552 if(hsize && !width) 7552 if(hsize && !width)
7553 width = 1; 7553 width = 1;
7554 7554
7555 if(strnicmp(tmpbuf, FRAMECLASSNAME, 2)==0) 7555 if(strnicmp(tmpbuf, FRAMECLASSNAME, strlen(FRAMECLASSNAME)+1)==0)
7556 tmpitem[0].type = TYPEBOX; 7556 tmpitem[0].type = TYPEBOX;
7557 else 7557 else
7558 { 7558 {
7559 if ( width == 0 && hsize == FALSE ) 7559 if ( width == 0 && hsize == FALSE )
7560 dw_messagebox("dw_box_pack_end()", DW_MB_OK|DW_MB_ERROR, "Width and expand Horizonal both unset for box: %x item: %x",box,item); 7560 dw_messagebox("dw_box_pack_end()", DW_MB_OK|DW_MB_ERROR, "Width and expand Horizonal both unset for box: %x item: %x",box,item);
7584 free(thisitem); 7584 free(thisitem);
7585 7585
7586 thisbox->count++; 7586 thisbox->count++;
7587 7587
7588 SetParent(item, box); 7588 SetParent(item, box);
7589 if(strncmp(tmpbuf, UPDOWN_CLASS, strlen(UPDOWN_CLASS))==0) 7589 if(strncmp(tmpbuf, UPDOWN_CLASS, strlen(UPDOWN_CLASS)+1)==0)
7590 { 7590 {
7591 ColorInfo *cinfo = (ColorInfo *)GetWindowLong(item, GWL_USERDATA); 7591 ColorInfo *cinfo = (ColorInfo *)GetWindowLong(item, GWL_USERDATA);
7592 7592
7593 if(cinfo) 7593 if(cinfo)
7594 { 7594 {