Having a blockade here with cellbackgroundpaint in a listbox which I suspect my be some simple thing I’m overlooking.
2016r4.1 on OSX.
I have a listbox which paints the cell background white and paints a circle in the middle of the cell (well actually a circle with a with the same as the g.width and the defaultrowheight always equals the column width.
celltextpaint then places the cell contents in white over the circle.
Anyhow, I’ve a got a problem where when the window loses focus to another app and them come back, the cellbacground is not painting. When I then click on the listbox, the row clicked shows up and I also have a container control that shows more detail of the cell’s content on mousemove. As this container control goes around the “white list box” what it passes over gets painted.
Wher can I sart to figure out why this is happening?
EDIT: I’m narrowing it down to one method (I’ve three that paint different things.) The problem occurs when the listbox is taller than the number of rows it has. In addition, while active and patined corectly, if I click in the lower part of the listbox where there are no real rows, the last active row goes blank and the container control begins erasing as it moves about.