Actually, if JeremyWin has a canvas, this will do:
DrawText(JeremyWin.canvas.handle,........
But it was still a better suggestion than what I suggested:
>Er, the Handle property of TWinControl. :)
Bollocks, it must be a Friday...
Carl Reynolds Ph: +64-9-4154790
CJN Technologies Ltd. Fax: +64-9-4154791
[EMAIL PROTECTED] DDI: +64-9-4154795
PO Box 302-278, North Harbour, Auckland, New Zealand
12 Piermark Drive, North Harbour Estate, Auckland, NZ
Visit our website at http://www.cjntech.co.nz/
> -----Original Message-----
> From: Alistair George [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, August 27, 1999 2:27 PM
> To: Multiple recipients of list delphi
> Subject: RE: [DUG]: Control Has No Window...agh
>
> > I have created a control based on a TWinControl.
> > I want to use DrawText procedure, BUT I need a handle.
> Doesnt:
> var hdc:integer;
> begin
> hDC := GetDC(JeremyWin.canvas.handle);
> DrawText(hDC,........
> ----------------------------------------------------------------------
> -----
> New Zealand Delphi Users group - Delphi List -
> [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
application/ms-tnef