Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/ap/apremoveclass.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/ap/apremoveclass.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/ap/apremoveclass.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/ap/apremoveclass.html on line 8

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


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/ap/apremoveclass.html on line 132

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/ap/apremoveclass.html on line 132