>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.
If it's not broken, fix it until it is.
My Blog