GreCloseFigure: Difference between revisions
Created page with "GreCloseFigure closes a figure within a path definition by drawing a line from the current (X,Y) position to the start point of the figure. Upon completion, the current positi..." |
mNo edit summary |
||
Line 1: | Line 1: | ||
GreCloseFigure closes a figure within a path definition by drawing a line from the current (X,Y) position to the start point of the figure. Upon completion, the current position is the start point of the figure. "Open figures" can be generated by starting a new figure (with a Move function) or by ending the path without first closing the figure. GreCloseFigure is valid outside of a path definition. When this occurs, this function has no effect and the handling routine ignores it. For more information, see | GreCloseFigure closes a figure within a path definition by drawing a line from the current (X,Y) position to the start point of the figure. Upon completion, the current position is the start point of the figure. "Open figures" can be generated by starting a new figure (with a Move function) or by ending the path without first closing the figure. GreCloseFigure is valid outside of a path definition. When this occurs, this function has no effect and the handling routine ignores it. For more information, see [[GpiCloseFigure]] in the ''Presentation Manager Programming Reference''. | ||
This function can be hooked by the presentation driver. | This function can be hooked by the presentation driver. | ||
;Simulation support: This function is simulated by a handling routine in the graphics engine. | ;Simulation support: This function is simulated by a handling routine in the graphics engine. | ||
==Syntax== | ==Syntax== | ||
GreCloseFigure(hdc, pInstance, lFunction) | GreCloseFigure(hdc, pInstance, lFunction) | ||
==Parameters== | ==Parameters== | ||
;hdc (HDC) - input | ;hdc (HDC) - input:Device context handle. | ||
:Device context handle. | ;pInstance (PVOID) - input:Pointer to instance data. | ||
;lFunction (ULONG) - input:High-order WORD=flags; low-order WORD=NGreCloseFigure. | |||
;pInstance (PVOID) - input | |||
:Pointer to instance data. | |||
;lFunction (ULONG) - input | |||
:High-order WORD=flags; low-order WORD=NGreCloseFigure. | |||
==Return Code== | ==Return Code== | ||
;rc (BOOL) - returns | ;rc (BOOL) - returns:This function returns BOOLEAN (fSuccess). | ||
:This function returns BOOLEAN (fSuccess). | *TRUE Successful | ||
*FALSE Error | |||
Possible Errors Detected: When an error is detected, the handling routine must call WinSetErrorInfo to post the condition. Error codes for conditions that the handling routine is expected to check include: | |||
*PMERR_BASE_ERROR | |||
*PMERR_COORDINATE_OVERFLOW | |||
*PMERR_DEV_FUNC_NOT_INSTALLED | |||
*PMERR_HDC_BUSY | |||
*PMERR_INV_COORD_SPACE | |||
*PMERR_INV_HDC | |||
*PMERR_INV_LENGTH_OR_COUNT | |||
*PMERR_NOT_IN_PATH | |||
*PMERR_PATH_LIMIT_EXCEEDED | |||
Refer to the "Error Explanations" section in the ''Presentation Manager Programming Reference'' for further explanation. | |||
[[Category:Gre]] | [[Category:Gre]] |
Latest revision as of 12:47, 5 March 2020
GreCloseFigure closes a figure within a path definition by drawing a line from the current (X,Y) position to the start point of the figure. Upon completion, the current position is the start point of the figure. "Open figures" can be generated by starting a new figure (with a Move function) or by ending the path without first closing the figure. GreCloseFigure is valid outside of a path definition. When this occurs, this function has no effect and the handling routine ignores it. For more information, see GpiCloseFigure in the Presentation Manager Programming Reference.
This function can be hooked by the presentation driver.
- Simulation support
- This function is simulated by a handling routine in the graphics engine.
Syntax
GreCloseFigure(hdc, pInstance, lFunction)
Parameters
- hdc (HDC) - input
- Device context handle.
- pInstance (PVOID) - input
- Pointer to instance data.
- lFunction (ULONG) - input
- High-order WORD=flags; low-order WORD=NGreCloseFigure.
Return Code
- rc (BOOL) - returns
- This function returns BOOLEAN (fSuccess).
- TRUE Successful
- FALSE Error
Possible Errors Detected: When an error is detected, the handling routine must call WinSetErrorInfo to post the condition. Error codes for conditions that the handling routine is expected to check include:
- PMERR_BASE_ERROR
- PMERR_COORDINATE_OVERFLOW
- PMERR_DEV_FUNC_NOT_INSTALLED
- PMERR_HDC_BUSY
- PMERR_INV_COORD_SPACE
- PMERR_INV_HDC
- PMERR_INV_LENGTH_OR_COUNT
- PMERR_NOT_IN_PATH
- PMERR_PATH_LIMIT_EXCEEDED
Refer to the "Error Explanations" section in the Presentation Manager Programming Reference for further explanation.