TIP: Click on subject to list as thread! ANSI
echo: delphi
to: SIMON HUGGINS
from: LARS SKOVLUND
date: 1997-05-18 11:42:00
subject: Owner draw listboxes

Hello Simon!
Wednesday May 14 1997, Simon Huggins writes to Martin Maat:
 SH> Height:=drawtext( hwnd(control), t, -1, r , DT_WORDBREAK+DT_CALCRECT);
I'm not sure about this, I don't use Delphi much, but shouldn't you use 
Control.Handle instead of just Control in the above line - and the same in 
the DrawItem handler?
Lars
--- GoldED/386 2.50 UNREG
---------------
* Origin: Yet another T.P.I. Point (2:238/64.46)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.