Jump to content

SplStdStart: Difference between revisions

From EDM2
Created page with "SplStdStart starts the recording of GPI and DevEscape calls as a metafile in the PM_Q_STD buffer. ==Syntax== SplStdStart(hdc); ==Parameters== ; hdc (HDC) - input : The devi..."
 
Ak120 (talk | contribs)
mNo edit summary
 
Line 1: Line 1:
SplStdStart starts the recording of GPI and DevEscape calls as a metafile in the PM_Q_STD buffer.
SplStdStart starts the recording of GPI and DevEscape calls as a metafile in the PM_Q_STD buffer.
==Syntax==
==Syntax==
  SplStdStart(hdc);
  SplStdStart(hdc)


==Parameters==
==Parameters==
; hdc (HDC) - input  
;hdc (HDC) - input: The device context handle.
: The device context handle.  


==Return Code==
==Return Code==
; fSuccess (BOOL) - returns  
;fSuccess (BOOL) - returns: Return codes.
: Return codes.  


This function returns BOOLEAN (fSuccess):  
This function returns BOOLEAN (fSuccess):  
 
* TRUE Success
* TRUE Success  
* FALSE Error
* FALSE Error  


==Remarks==
==Remarks==
The calls are still processed by the system and passed on to the graphics engine and hardcopy driver as calls to the relevant Grexxx functions.  
The calls are still processed by the system and passed on to the graphics engine and hardcopy driver as calls to the relevant Grexxx functions.


The hardcopy driver's Escape routine usually calls SplStdStart when DEVESC_STARTDOC is received. Some previous versions of presentation drivers made this call from the CompleteOpenDC routine to accommodate applications that did not call DevEscape(DEVESC_STARTDOC) at the start of the document.  
The hardcopy driver's Escape routine usually calls SplStdStart when DEVESC_STARTDOC is received. Some previous versions of presentation drivers made this call from the CompleteOpenDC routine to accommodate applications that did not call DevEscape(DEVESC_STARTDOC) at the start of the document.


==Example Code==
<PRE>
<PRE>
#include <os2.h>
#include <os2.h>
Line 29: Line 26:


fSuccess = SplStdStart(hdc);
fSuccess = SplStdStart(hdc);
</PRE>
</PRE>


[[Category:Spl]]
[[Category:Spl]]

Latest revision as of 00:58, 26 March 2020

SplStdStart starts the recording of GPI and DevEscape calls as a metafile in the PM_Q_STD buffer.

Syntax

SplStdStart(hdc)

Parameters

hdc (HDC) - input
The device context handle.

Return Code

fSuccess (BOOL) - returns
Return codes.

This function returns BOOLEAN (fSuccess):

  • TRUE Success
  • FALSE Error

Remarks

The calls are still processed by the system and passed on to the graphics engine and hardcopy driver as calls to the relevant Grexxx functions.

The hardcopy driver's Escape routine usually calls SplStdStart when DEVESC_STARTDOC is received. Some previous versions of presentation drivers made this call from the CompleteOpenDC routine to accommodate applications that did not call DevEscape(DEVESC_STARTDOC) at the start of the document.

#include <os2.h>

HDC     hdc;       /*  The device context handle. */
BOOL    fSuccess;  /*  Return codes. */

fSuccess = SplStdStart(hdc);