Re: user32: Add check for the need to redraw static control after STM_SETIMAGE and STM_SETICON

2009-09-28 Thread Ilya Shpigor
On Saturday 26 September 2009 12:09:30 Nikolay Sivov wrote: > --- > + if ((style & SS_TYPEMASK) != SS_ICON) return (HICON)-1; > ... > + if ((style & SS_TYPEMASK) != SS_BITMAP) return (HBITMAP)-1; > ... > + if ((style & SS_TYPEMASK) != SS_ENHMETAFILE) return (HENHMETAFILE)-1; > --- > > Add tests fo

Re: user32: Add check for the need to redraw static control after STM_SETIMAGE and STM_SETICON

2009-09-26 Thread Nikolay Sivov
Ilya Shpigor wrote: Hi, This patch fix the redrawing static controls after the processing STM_SETIMAGE and STM_SETICON messages with errors. --- + if ((style & SS_TYPEMASK) != SS_ICON) return (HICON)-1; ... + if ((style & SS_TYPEMASK) != SS_BITMAP) return (HBITMAP)-1; ... + if ((style & SS_