Hi Lars,
On Sunday, 18 May 1997 at 11:42:26, Lars Skovlund confused me
talking about: Owner draw listboxes to Simon Huggins
SH>> Height:=drawtext( hwnd(control), t, -1, r ,
SH>> DT_WORDBREAK+DT_CALCRECT);
LS> I'm not sure about this, I don't use Delphi much, but
LS> shouldn't you use Control.Handle instead of just Control in
LS> the above line - and the same in the DrawItem handler?
I used:
(control as Tlistbox).canvas.handle
in the end and IT WORKS !!!
:-)
bfn,
si.
Fido : 2:440/7.15 or Internet : huggie@dial.pipex.com
Web : http://dialspace.dial.pipex.com/huggie
.!. Cannot understand tagline (A)bort (R)etry (L)augh anyway
--- Terminate 4.00/Pro
---------------
* Origin: Fou, con et anglais! (2:440/7.15)
|