|
You can call PEcreate
with a parent handle of zero. This will create a pure memory-based object
with no Windows functionality. In other words, a Window is not created
and no message handling or other event processing is available. You can
use this memory object to set properties, pass data, and thus generate
metafiles and other output as desired. Also, you can later attach a Window
to this object by calling PEcreate
again and this time passing a Window handle as nObjectType and providing
a valid parent handle. It is this mechanism that allows ProEssentials'
WinForm, ActiveX and VCL interfaces to
server as Windowless server components.
The
developer using the WinForm, ActiveX or VCL interfaces can keep the ProEssentials
object hidden and then use image export functions such as PEcopypngtofile
or PEprintgraph.
The WinForm, ActiveX and VCL interfaces function as Windowless server
components if theyre never forced visible.
The
function PEgetmeta
can be used to retrieve a metafile handle of the objects current image.
You can play this metafile into any Device Context (DC) as needed with
the PEplaymetafile ProEssentials API call. Refer to printing sections within Chapter
2, 3, 4, and 5.
|