Owner Draw List Box & GetText()
C / C++ / MFC
2
Posts
2
Posters
3
Views
1
Watching
-
Hi All, Does anyone know why GetText() gives a string of random garbage when called on my owner draw list box class? If I clear the owner draw style, it behaves perfectly, but when it's set I get purely random values. Cheers jon
using System.Beer;
-
Hi All, Does anyone know why GetText() gives a string of random garbage when called on my owner draw list box class? If I clear the owner draw style, it behaves perfectly, but when it's set I get purely random values. Cheers jon
using System.Beer;
You probably already discovered what the issue is back in 2005. However, googling for the same issue in 2023 brought me here. For anyone else having the problem, you need to also set the LBS_HASSTRINGS state for the ownerdrawn listbox.