Home > Software engineering >  Clistbox or CListCtrl, the last line of the current visual area, show only the upper line. At this p
Clistbox or CListCtrl, the last line of the current visual area, show only the upper line. At this p

Time:11-09

Rt.
Control after painting, leading to automatically move up, occasional bug. Part of the machine sometimes appear is selected (the mouse to click the next line.

Is also a Windows 7 machine, now found two no problem, there is something wrong with the 2 sets.
There is a problem of machine, the log shows: normal, DrawItem call once, the mouse and row is selected. The problem, DrawItem call 2 times, the selected is the next line.

Didn't find the reason for the error. The debug, breakpoints in the DrawItem, so there will not be a bug. (I try to Slepp, bug still appear)

Have a great god know how to solve?

CodePudding user response:

Try to add LBS_NOINTEGRALHEIGHT attribute

CodePudding user response:

Is not working. This window can I zoom.
Now to CListBox in scale, height can be a multiple of that of the high line. Although looks strange, but it seems not a bug.

CodePudding user response:

Seemed occasional problems, on the bottom the pixel point CListBox line, have a chance or a bug. Do not change...

CodePudding user response:

DrawItem problem!
  • Related