ApRemoveClass()

Remove a widget class

Synopsis:

#include <Ap.h>

int ApRemoveClass( 
        char const * class_name_string,
        PtWidgetClassRef_t * const *wgt_class);

Arguments:

class_name_string
The name of the class that you want to remove (for example, "PtButton").
wgt_class
A predefined widget class; specify the name of the class preceded by an ampersand (for example, &PtButton).

Library:

Ap

Description:

This function lets you remove widget classes that you previous added by calling ApAddClass().

If you've loaded a DLL that adds classes, you should remove the classes before you unload the DLL.

Returns:

0
Success.
-1
The widget wasn't registered with ApAddClass(), or the wgt_class pointer isn't the same as when you registered the class.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

ApAddClass(), ApRemoveContext()

Making a DLL out of a PhAB application in the Generating, Compiling, and Running Code chapter, Accessing PhAB Modules from Code chapter of the Photon Programmer's Guide