Remove a widget class
#include <Ap.h>
int ApRemoveClass(
char const * class_name_string,
PtWidgetClassRef_t * const *wgt_class);
Ap
This function lets you remove widget classes that you previous added by calling ApAddClass(). The class_name_string is the name of the class (for example, "PtButton"). The wgt_class is a predefined widget class; specify the name of the class preceded by an ampersand (for example, &PtButton).
If you've loaded a DLL that add classes, you should remove the classes before you unload the DLL.
Photon
| Safety: | |
|---|---|
| Interrupt handler | No |
| Signal handler | No |
| Thread | No |
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