hi all just a little improvement suggested by dave elliot on the updown.c patch that i posted before. it doesnt change the functionality but is more elegant coding. to be installed on top of the previous patch. Shane __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/
--- ./dlls/comctl32/updown.c.orig Sun Jan 13 17:28:18 2002 +++ ./dlls/comctl32/updown.c Thu Jan 17 21:03:44 2002 @@ -177,7 +177,7 @@ */ if (dwStyle & UDS_HORZ) { len = rect->right - rect->left; /* compute the width */ - if (len % 2 != 0 ) len ++; /* if not an even number then add 1 */ + len+=(len%2); /* if not an even number then add 1 */ if (incr) rect->left = rect->left + len/2; else @@ -185,7 +185,7 @@ } else { len = rect->bottom - rect->top; /* compute the height */ - if (len % 2 != 0 ) len ++; /* if not an even number then add 1 */ + len+=(len%2); /* if not an even number then add 1 */ if (incr) rect->bottom = rect->top + len/2; else