Static Public Member Functions

IColorSwatchDestructorPolicy Class Reference

Search for all occurrences

Detailed 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

#include <custcont.h>

Inheritance diagram for IColorSwatchDestructorPolicy:
Inheritance graph
[legend]

List of all members.

Static Public Member Functions

static void  Delete (IColorSwatch *colorSwatch)

Member Function Documentation

static void Delete ( IColorSwatch colorSwatch ) [inline, static]
    {
        ReleaseIColorSwatch(colorSwatch);
    }

IColorSwatchDestructorPolicy IColorSwatchDestructorPolicy IColorSwatchDestructorPolicy IColorSwatchDestructorPolicy IColorSwatchDestructorPolicy IColorSwatchDestructorPolicy IColorSwatchDestructorPolicy IColorSwatchDestructorPolicy IColorSwatchDestructorPolicy IColorSwatchDestructorPolicy
IColorSwatchDestructorPolicy IColorSwatchDestructorPolicy IColorSwatchDestructorPolicy IColorSwatchDestructorPolicy IColorSwatchDestructorPolicy IColorSwatchDestructorPolicy IColorSwatchDestructorPolicy IColorSwatchDestructorPolicy IColorSwatchDestructorPolicy IColorSwatchDestructorPolicy