Re: OLE Automation and Window handles
- From: "Jan" <nomail@xxxxxxxxxxx>
- Date: Sat, 1 Oct 2005 17:56:19 +1000
Sounds like DYMO. I started playing with a formset, so that the main form
could hanle all the properties and buttons and the "subform" could be used
to draw the preview, got side tracked though and ended up using the IAddIn
interface to view the labels via the DYMO gui. Post back if I'm on the right
track and we can swap stories.
"Dan" <Dan@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>I am working with automating some barcode label software in VFP 9. One of
> the OLE functions is used to draw a preview image of the barcode label in
> image object.
> The parameter of the function requires a handle to the control that I want
> to paint the image in. This can be accomplished in Visual Basic by using
> hWnd property of the image control. VFP does not have this functionality
> that I am aware of for controls.
> 1.) Is it possible to use this method of painting in an image control in
> 2.) If not, is it possible to use a form and draw the label preview
> on the form using the form's hWnd propery, maybe by using GDI?
> Thanks for any help you can give.