<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Mar 24, 2015 at 2:06 PM, Juha Manninen <span dir="ltr"><<a href="mailto:juha.manninen62@gmail.com" target="_blank">juha.manninen62@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"> // ToDo: Fix Result and the loop. "I" is not used for anything.<br>
for I := 0 to FrameWidth - 1 do<br>
Result := Boolean(DrawEdge(DC, ARect, Edge[Style], BF_RECT or BF_ADJUST));<br></blockquote><div><br></div><div>false positive.</div><div><br></div><div><a href="https://msdn.microsoft.com/en-us/library/windows/desktop/dd162477%28v=vs.85%29.aspx">https://msdn.microsoft.com/en-us/library/windows/desktop/dd162477%28v=vs.85%29.aspx</a></div><div>BF_ADJUST causes ARect to be different on every call. Side-effect function :)<br></div><div><br></div><div>hmm... of is DrawEdge declaration wrong having ARect be passed as "const" rather than "var"?</div><div><br></div><div>thanks,</div><div>Dmitry</div><div><br></div><div><br></div><div> </div></div></div></div>