IColorSwatchDestructorPolicy Class Reference
 
 
 
IColorSwatchDestructorPolicy Class Reference

#include <custcont.h>

Inheritance diagram for IColorSwatchDestructorPolicy:
MaxHeapOperators

Class Description

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
See also:
class IColorSwatch, class AutoPtr

Static Public Member Functions

static void  Delete (IColorSwatch *colorSwatch)

Member Function Documentation

static void Delete ( IColorSwatch colorSwatch ) [inline, static]