#include <custcont.h>
Class representing the DestructorPolicy for AutoPtr instances wrapping IColorSwatch pointers.
Sample Code:
MaxSDK::AutoPtr<IColorSwatch, IColorSwatchDestructorPolicy> colorSwatch(GetIColorSwatch(hwnd)); colorSwatch->SetAColor( newColor ); // when colorSwatch goes out of scope, its Delete method is called, which calls ReleaseIColorSwatch
Static Public Member Functions |
|
| static void | Delete (IColorSwatch *colorSwatch) |
| static void Delete | ( | IColorSwatch * | colorSwatch | ) | [inline, static] |
{
ReleaseIColorSwatch(colorSwatch);
}