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
#include <custcont.h>
Static Public Member Functions |
|
static void | Delete (ICustButton *btn) |
static void Delete | ( | ICustButton * | btn | ) | [inline, static] |
{ ReleaseICustButton(btn); }