Next Previous Up Top Contents Index

6.7.10 Other required methods for in-process servers

OLE-part-draw

Open generic function

Signature

OLE-part-draw obj hDC rect => status 

Arguments

obj
An instance of your subclass of <ole-in-process-server>.

hDC
An instance of <HDC>.

rect
An instance of <LPRECTL>.

Values

status
An instance of <HRESULT>.

Library

OLE-Server

Module

OLE-Server

Description

In-process servers must implement this method to draw all of the document window display to the given device context, hDC (an instance of <HDC>), scaled and translated to fit within the given rectangle, rect (an instance of <LPRECTL>).

The image drawn by this is what is displayed by the container when the server is no longer active. Normally, this method should return $S-OK but it is possible to return an error status code that will be reported back to the container program.


OLE, COM, ActiveX and DBMS Reference - 31 MAR 2000

Next Previous Up Top Contents Index