![]() The parameter cx, cy, cxSrc, or cySrc has a value of zero. The address in prcWBounds is not valid when hdc contains a metafile device context. This method supports the standard return values E_FAIL, E_INVALIDARG, and E_OUTOFMEMORY, as well as the following: Return code The vertical extent to copy from the source picture.Ī pointer to a rectangle containing the position of the destination within a metafile device context if hdc is a metafile DC. ' ' The code requires a reference to the 'OLE Automation' type library ' ' The code in this module has been derived from a number of sources ' discovered on MSDN. The horizontal extent to copy from the source picture. The PastePicture function takes an optional argument of ' the picture type - xlBitmap or xlPicture. The vertical offset in the source picture from which to start copying. The horizontal offset in the source picture from which to start copying. I am using following code: Me.CommandButton1. 'MailMergeGoToLastRecord' should point to down instead to the right. The vertical dimension (height) of the destination rectangle The picture a would like to add is 'MailMergeGoToFirstRecord' but it should not point to the left but to up. The horizontal dimension (width) of the destination rectangle. ![]() You should be able to simply use a cast to make the compiler happy. The vertical coordinate in hdc at which to place the rendered image. The IID for IPictureDisp is 7BF80981-BF32-101A-8BBB-00AA00300CAB and according to the Ole Automation Ver2.0 type library (stdole2.tlb) viewed with oleview.exe a Picture dispinterface has the same IID. The horizontal coordinate in hdc at which to place the rendered image. Syntax HRESULT Render(Ī handle of the device context on which to render the image. For more information, see the prcWBounds parameter of IViewObject2::Draw. ![]() Such information is necessary to place one metafile in another. The prcWBounds parameter specifies the position of this rendering if the destination device context is itself a metafile. This picture is rendered onto the specified device context, positioned at the point ( x, y), and scaled to the dimensions ( cx, cy). Renders (draws) a specified portion of the picture defined by the offset ( xSrc, ySrc) of the source picture and the dimensions to copy ( cxSrc, xySrc).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |