Important: The information in this document is obsolete and should not be used for new development.
GXSetUserGraphicsNotice
You can use theGXSetUserGraphicsNoticefunction 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
longvalue that is called each time a notice occurs. This value can be used by the application for any purpose.DESCRIPTION
TheGXSetUserGraphicsNoticefunction installs an application-defined notice- handling function. This function installs a function pointer that is called whenever a notice is posted. Setting theuserFunctionparameter tonilremoves the notice function.The
userFunctionparameter 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 thelongreference. Whenever a notice is posted by the application, the installed notice handler is called with the notice number. The reference number is passed to theGXSetUserGraphicsNoticefunction.You can install a notice handler before calling the
GXEnterGraphicsfunction, but you should call theGXNewGraphicsClientfunction first. If you don't, it will be called for you.The
GXSetUserGraphicsNoticefunction 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
GXGetUserGraphicsNoticefunction 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.