CustomizeDialogEvents.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 "CustomizeDialogEvents.h" HRESULT CustomizeDialogEvents::OnStartDialog() { g_ipToolbarControl->put_Customize(VARIANT_TRUE); return S_OK; } HRESULT CustomizeDialogEvents::OnCloseDialog() { g_ipToolbarControl->put_Customize(VARIANT_FALSE); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(customize_select), false); return S_OK; }