>>Strange. (this.ListCount - this.ListIndex) has none sense for me.
>
>You're right. This was not a good idea and didn't work anyway.
>
>>
>>>
>>>Therefore I had to call AdjustWidth method from combo's refresh... :(
>>
>>Obviously also here there is a bug on VFP C++ code.
>>Can you tell me these values? I don't understand the your 39
>>
>>SYSMETRIC(5)
>>FONTMETRIC(6,m.combo.FontName,m.combo.FontSize,IIF(m.combo.FontBold,"B",""))
>>
>
>17
>
>5
>
>I changed your number 7 to 6 and it almost worked. However, our QA found one case where it didn't work, e.g. the drop-down shown in smalled width than the combo's width.
7 is not a magic number, it is the default popup items height when DisplayCount=0
The issue is you 39 value!
Stay in bell, I am nearby ...