Simulation support:

This function is simulated by a handling routine in the graphics engine.

Description GreBoxInterior draws a rectangular box with one corner at the current (X,Y) position and the opposite corner at the specified (X,Y) position. The current (X,Y) position does not change. When this function occurs within an area or path definition, it generates a closed figure. GreBoxInterior must not occur within any other figure definition.

This function can be hooked by the presentation driver.

#define INCL_GRE_ARCS
#include <os2.h>

HDC        hdc;        /*  Device context handle. */
PPOINTL    pBox;       /*  Pointer to a BOXDATA structure. */
PVOID      pInstance;  /*  Pointer to instance data. */
ULONG      lFunction;  /*  High-order WORD=flags; low-order WORD=NGreBoxInterior. */
LONG       rc;

rc = GreBoxInterior(hdc, pBox, pInstance,
       lFunction);


[Back: GreBoxInterior]
[Next: GreBoxInterior Parameter - hdc]