Important: The information in this document is obsolete and should not be used for new development.
GXGetUserGraphicsWarning
You can use theGXGetUserGraphicsWarning
function to obtain the currently installed application-defined warning handler.
gxUserWarningFunction GXGetUserGraphicsWarning(long *reference);
reference
- A
long
value that gets called each time a warning occurs. This value can be used by your application for any purpose.- function result
- A pointer to the installed application-defined warning handler.
DESCRIPTION
TheGXGetUserGraphicsWarning
function returns a pointer to the function that the application uses to handle warnings. The function returnsnil
if no application-defined warning handler is provided.If a warning handler is installed and the
reference
parameter is notnil
, then thereference
parameter passed to theGXSetUserGraphicsWarning
function is returned.SEE ALSO
The use of this function is described in the section "Installing an Error, Warning, or Notice Handler" beginning on page 3-38.The
GXSetUserGraphicsWarning
function used to install the warning handler is described in the previous section.An alternative method to the use of an application-defined warning handler is the use of the QuickDraw GX warnings.
The
GXGetGraphicsWarning
function, described in the section "Obtaining Errors, Warnings, and Notices" beginning on page 3-30, returns the first and last QuickDraw GX warnings that have been posted.