I find that by calling WinEraseRectangle() over the whole drawing area at the
beginning of your callback before a draw get's rid of the highlight weirdness.

Steve

Chris Faherty wrote:

> On 16-Nov-99 Richard Hartman wrote:
>
> > I've implemented a list using a drawing callback function.
>
> (snip)
>
> > If I tap anywhere else on the list, the selected item is
> > highlighted all the way across the list, and the first item
> > gets garbage highlighting, like this:
> >
> >       |[]ITEM 1[               ]|
> >       |[ ITEM 2                ]|
> >       |  ITEM 3                 |
>
> Not sure if it's related, but make sure you don't modify the bounds parameter
> that is passed to the list callback.  That will cause weirdness.  Also of
> course remember to use prologue and epilogue with GCC.
>
> /* Chris Faherty <[EMAIL PROTECTED]>, finger for PGP */

Reply via email to