If your COM object handles all the drawing i'd be tempted to wrap it with a TWinControl (or at least derive the wrapper from that).
TWinControl has the windows handle and message processing, but none of the TCanvas or painting stuff. Devil is in the details though ... -ns http://www.roserox.co.th ----- Original Message ----- From: "Donovan J. Edye" <[EMAIL PROTECTED]> To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]> Sent: Thursday, November 01, 2001 4:20 AM Subject: Re:[DUG]: Painting to HWND.... > P, > > >Does the C++ COM Object do painting properly normally ??? > Not sure what you mean by this, but the COM object is using DirectX > internally and just uses the HWND as a mechanism to draw into the panel. > Windows is getting time to process messages as other controls on the form > are responsive. > > have you looked at LockWindowUpdate ? > No. Good point. I will..... > > >Are you passing the Window Handle for the Form or the Panel ? > For the panel..... > > At 08:18 01/11/2001 +1200, you wrote: > >Does the C++ COM Object do painting properly normally ??? > >have you looked at LockWindowUpdate ? > >Are you passing the Window Handle for the Form or the Panel ? > > > >Regards > >Paul McKenzie > > > >========================= > >Paul McKenzie > >Jetbet II Developer > >========================= > >[EMAIL PROTECTED] > >Ph: (04) 576-6822 > > > >T.A.B. National Office > >106-110 Jackson Street > >Petone > >New Zealand > > > > > > > >____________________Reply Separator____________________ > >Subject: [DUG]: Painting to HWND.... > >Author: [EMAIL PROTECTED] > >Date: 31/10/2001 16:23 > > > > > > > > G'Day, > > > > We are developing a Delphi Front End to a C++ COM object. The COM object > > needs a HWND to draw some output. As an initial test we are using a > > TPanel > > for this. However the TPanel flickets badly as it tries to repaint > > itself. > > So the question is: What control needs to be used that has a HWND > > but that > > does not flicker withing the Delphi App. As a side issue - The mouse is > > also not visible over the TPanel..... > > > > > > -- Donovan > ---------------------------------------------------------------------- > > Donovan J. Edye [www.edye.wattle.id.au] > > Namadgi Systems [www.namsys.com.au] > > Voice: +61 2 6285-3460 > > Fax: +61 2 6285-3459 > > TVisualBasic = Class(None); > > Oh...." > ---------------------------------------------------------------------- > > GXExplorer [http://www.gxexplorer.org] Freeware Windows Explorer > > replacement. Also includes freeware delphi windows explorer components. > > > >----------------------------------------------------------------------(See > >attached file: att1.htm) > > (See attached file: att2.eml) > > > > -- Donovan > ---------------------------------------------------------------------- > Donovan J. Edye [www.edye.wattle.id.au] > Namadgi Systems [www.namsys.com.au] > Voice: +61 2 6285-3460 > Fax: +61 2 6285-3459 > TVisualBasic = Class(None); > Heard just before the 'Big Bang': "...Uh Oh...." > ---------------------------------------------------------------------- > GXExplorer [http://www.gxexplorer.org] Freeware Windows Explorer > replacement. Also includes freeware delphi windows explorer components. > ---------------------------------------------------------------------- > --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/