Label edit
TOCControlEvents.cpp
// Copyright 2010 ESRI
// 
// All rights reserved under the copyright laws of the United States
// and applicable international laws, treaties, and conventions.
// 
// You may freely redistribute and use this sample code, with or
// without modification, provided you include the original copyright
// notice and use restrictions.
// 
// See the use restrictions.
// 

  
#include "TOCControlEvents.h"

void TOCControlEvents::OnMouseDown(long button, long shift, long x, long y)  
{
}

void TOCControlEvents::OnMouseUp(long button, long shift, long x, long y)
{
}

void TOCControlEvents::OnMouseMove (long button, long shift, long x, long y)
{
}

void TOCControlEvents::OnDoubleClick (long button, long shift, long x, long y)
{
}

void TOCControlEvents::OnKeyDown (long keyCode, long shift)
{
}

void TOCControlEvents::OnKeyUp (long keyCode, long shift)
{
}

void TOCControlEvents::OnBeginLabelEdit (long x, long y, 
                                         VARIANT_BOOL * CanEdit)
{
}

void TOCControlEvents::OnEndLabelEdit (long x, long y, BSTR newLabel, 
                                       VARIANT_BOOL * CanEdit)
{
  if (CComBSTR("") == newLabel)
    *CanEdit = VARIANT_FALSE;
}