Important: The information in this document is obsolete and should not be used for new development.
GXSetUserGraphicsNotice
You can use theGXSetUserGraphicsNotice
function to install a notice handler.
void GXSetUserGraphicsNotice(gxUserNoticeFunction userFunction, long reference);
userFunction
- The application function that is to be passed the notice result code.
reference
- A
long
value that is called each time a notice occurs. This value can be used by the application for any purpose.DESCRIPTION
TheGXSetUserGraphicsNotice
function installs an application-defined notice- handling function. This function installs a function pointer that is called whenever a notice is posted. Setting theuserFunction
parameter tonil
removes the notice function.The
userFunction
parameter points to an application-defined notice handler defined by the following type:
typedef void (*gxUserNoticeProcPtr)(gxGraphicsNotice status, long reference) typedef gxUserNoticeProcPtr gxUserNoticeFunction;The second parameter is thelong
reference. Whenever a notice is posted by the application, the installed notice handler is called with the notice number. The reference number is passed to theGXSetUserGraphicsNotice
function.You can install a notice handler before calling the
GXEnterGraphics
function, but you should call theGXNewGraphicsClient
function first. If you don't, it will be called for you.The
GXSetUserGraphicsNotice
function has no effect in the non-debugging version.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
GXGetUserGraphicsNotice
function used to return a pointer to the application-defined notice handler is described in the next section.The application-defined notice handler is described on page 3-72.