Static Public Member Functions

ICustButtonDestructorPolicy Class Reference

Search for all occurrences

Detailed Description

Class representing the DestructorPolicy for AutoPtr instances wrapping ICustButton pointers.

Sample Code:

MaxSDK::AutoPtr<ICustButton, ICustButtonDestructorPolicy> btn(GetICustButton(hbtn));
btn->SetType(CBT_PUSH);
btn->SetRightClickNotify(FALSE);
btn->SetButtonDownNotify(FALSE);
// when btn goes out of scope, its Delete method is called, which calls ReleaseICustButton
See also:
class ICustButton, class AutoPtr

#include <custcont.h>

Inheritance diagram for ICustButtonDestructorPolicy:
Inheritance graph
[legend]

List of all members.

Static Public Member Functions

static void  Delete (ICustButton *btn)

Member Function Documentation

static void Delete ( ICustButton btn ) [inline, static]
    {
        ReleaseICustButton(btn);
    }

ICustButtonDestructorPolicy ICustButtonDestructorPolicy ICustButtonDestructorPolicy ICustButtonDestructorPolicy ICustButtonDestructorPolicy ICustButtonDestructorPolicy ICustButtonDestructorPolicy ICustButtonDestructorPolicy ICustButtonDestructorPolicy ICustButtonDestructorPolicy
ICustButtonDestructorPolicy ICustButtonDestructorPolicy ICustButtonDestructorPolicy ICustButtonDestructorPolicy ICustButtonDestructorPolicy ICustButtonDestructorPolicy ICustButtonDestructorPolicy ICustButtonDestructorPolicy ICustButtonDestructorPolicy ICustButtonDestructorPolicy