<pre>Hi.<br><br>BUG:<br>TreeView sends TVS_GETDISPINFO notifycation. Main application catch it and<br>change "mask","state" and "stateMask" in a TVITEM structure. After returning<br><br>from message handler, item's state don't changed. TreeView don't save new item<br>
<br><br><br>state in function TREEVIEW_UpdateDispInfo after calling<br>TREEVIEW_SendRealNotify.<br><br>This is Delphi code sample, TMyTreeView inherits from TCustomTreeView<br><br>//-----------------------------------------------------------------<br>
<br><br><br>procedure TMyTreeView.CNNotify(var Message: TWMNotify);<br>var<br> hNode: Integer;<br>begin<br> with Message do<br> case NMHdr^.code of<br> TVN_GETDISPINFO:<br><br> with PTVDispInfo(NMHdr)^ do begin<br>
hNode := item.hItem;<br><br><br><br> with PTVDispInfo(NMHdr)^.item do begin<br> mask := mask or TVIF_STATE or TVIF_HANDLE;<br> stateMask := stateMask or TVIS_STATEIMAGEMASK;<br><br> state := (state and not TVIS_STATEIMAGEMASK)<br>
<br><br> or UINT(IndexToStateImageMask(MyGetItemImageIndex(hNode)));<br><br> end;<br> end;<br> end;<br><br> inherited;<br>end;<br>//-----------------------------------------------------------------<br>
<br>
<br>This's link to MSDN page, where described how it must work:<br><a href="http://msdn.microsoft.com/en-us/library/bb773456%28VS.85%29.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/bb773456(VS.85).aspx</a><br>
<br></pre>Thx, I'm fix the patch.<br>Unfortuntley, by some reason, I can't include the test case. Only MSDN link.<br><br>I resend it with real name.<br><br><br><div class="gmail_quote">2008/10/30 <span dir="ltr"><<a href="mailto:wine-bugs@winehq.org" target="_blank">wine-bugs@winehq.org</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><a href="http://bugs.winehq.org/show_bug.cgi?id=15833" target="_blank">http://bugs.winehq.org/show_bug.cgi?id=15833</a><br>
<br>
<br>
<br>
<br>
<br>
</div>--- Comment #3 from Dmitry Timoshkov <<a href="mailto:dmitry@codeweavers.com" target="_blank">dmitry@codeweavers.com</a>> 2008-10-30 10:36:23 ---<br>
Please resend with your real name in the From: field. Thanks.<br>
<div><div></div><div><br>
<br>
--<br>
Configure bugmail: <a href="http://bugs.winehq.org/userprefs.cgi?tab=email" target="_blank">http://bugs.winehq.org/userprefs.cgi?tab=email</a><br>
Do not reply to this email, post in Bugzilla using the<br>
above URL to reply.<br>
------- You are receiving this mail because: -------<br>
You reported the bug.<br>
</div></div></blockquote></div><br>