"Dmitry Timoshkov" dmitry@baikal.ru wrote:
"Alexander Yaworsky" yaworsky@migusoft.ru wrote:
http://migusoft.ru/misc/trace.bz2
with added ERR()s, see attachment
I cut the tail of log just before the first err:listbox. Note that there are two listboxes on the form. Both are initialized ok, wrong things begin after WM_KEYDOWN.
Thanks, now I see where the problem is. In responce to WM_DRAWITEM the app does:
SendMessage(hwndListbox, LB_GETITEMRECT, 0, &rc); InvalidateRect(hwndListbox, &rc, FALSE); UpdateWindow(hwndListbox);
which leads to an infinite loop.
While browsing my old not answered e-mails I've found this one. Does the attached patch help? It restricts the control to draw outside of the item rect but not the whole control rect as it currently does.