GreGetDefaultViewingLimits: Difference between revisions
Appearance
Created page with "GreGetDefaultViewingLimits loads the array indicated by prclViewingLimits with the default boundaries of the viewing window in graphic model space coordinates. This function..." |
mNo edit summary |
||
Line 1: | Line 1: | ||
GreGetDefaultViewingLimits loads the array indicated by prclViewingLimits with the default boundaries of the viewing window in graphic model space coordinates. | GreGetDefaultViewingLimits loads the array indicated by prclViewingLimits with the default boundaries of the viewing window in graphic model space coordinates. | ||
This function is supported by the graphics engine. | This function is supported by the graphics engine. | ||
==Syntax== | ==Syntax== | ||
GreGetDefaultViewingLimits(hdc, prclViewingLimits, pInstance, lFunction) | |||
==Parameters== | ==Parameters== | ||
;hdc (HDC) - input | ;hdc (HDC) - input:Device context handle. | ||
:Device context handle. | ;prclViewingLimits ([[PRECTL]]) - input:Pointer to limits of viewing area. | ||
;pInstance (PVOID) - input:Pointer to instance data. | |||
;prclViewingLimits (PRECTL) - input | ;lFunction (ULONG) - input:High-order WORD=flags; low-order WORD=NGreGetDefaultViewingLimits. | ||
:Pointer to limits of viewing area. | |||
;pInstance (PVOID) - input | |||
:Pointer to instance data. | |||
;lFunction (ULONG) - input | |||
:High-order WORD=flags; low-order WORD=NGreGetDefaultViewingLimits. | |||
==Return Code== | ==Return Code== | ||
;fSuccess (BOOL) - returns | ;fSuccess (BOOL) - returns:Return codes. | ||
:Return codes. | |||
:On completion, the handling routine must return BOOLEAN (fSuccess). | :On completion, the handling routine must return BOOLEAN (fSuccess). | ||
:*TRUE Successful | |||
:*TRUE Successful | :*FALSE Error | ||
:*FALSE Error | :Possible Errors Detected: When an error is detected, the graphics engine calls WinSetErrorInfo to post the condition. Reasons for failure of this function include: | ||
:*PMERR_HDC_BUSY | |||
:Possible Errors Detected: | :*PMERR_INV_HDC | ||
Refer to the "Error Explanations" section of the ''Presentation Manager Programming Reference'' for further explanation. | |||
:*PMERR_HDC_BUSY | |||
:*PMERR_INV_HDC | |||
[[Category:Gre]] | [[Category:Gre]] |
Latest revision as of 08:48, 2 January 2020
GreGetDefaultViewingLimits loads the array indicated by prclViewingLimits with the default boundaries of the viewing window in graphic model space coordinates.
This function is supported by the graphics engine.
Syntax
GreGetDefaultViewingLimits(hdc, prclViewingLimits, pInstance, lFunction)
Parameters
- hdc (HDC) - input
- Device context handle.
- prclViewingLimits (PRECTL) - input
- Pointer to limits of viewing area.
- pInstance (PVOID) - input
- Pointer to instance data.
- lFunction (ULONG) - input
- High-order WORD=flags; low-order WORD=NGreGetDefaultViewingLimits.
Return Code
- fSuccess (BOOL) - returns
- Return codes.
- On completion, the handling routine must return BOOLEAN (fSuccess).
- TRUE Successful
- FALSE Error
- Possible Errors Detected: When an error is detected, the graphics engine calls WinSetErrorInfo to post the condition. Reasons for failure of this function include:
- PMERR_HDC_BUSY
- PMERR_INV_HDC
Refer to the "Error Explanations" section of the Presentation Manager Programming Reference for further explanation.