## Presentation Device Driver Reference for OS/2

[prev][next][parent][TOC]

### GreCopyDCLoadData - Syntax

Description

GreCopyDCLoadData copies the loaded fonts, bit maps, color table, and default attributes from one DC to another.

This function is supported by the graphics engine.

    #define INCL_GRE_LCID

    #include <os2.h>

    HDC      hdc;        /*  Handle of target DC. */

    ULONG    flCmd;      /*  Flags indicating which fonts to copy. */

    HDC      hdcSrc;     /*  Handle of source DC. */

    PVOID    pInstance;  /*  Pointer to instance data. */

    ULONG    lFunction;  /*  High-order WORD=flags; low-order WORD=NGreCopyDCLoadData. */

    BOOL     fSuccess;   /*  Return codes. */

    fSuccess = GreCopyDCLoadData(hdc, flCmd, hdcSrc,

                 pInstance, lFunction);