Pan and zoom commands
FixedZoomOut.h
// 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.
// 

 
#ifndef __FIXED_ZOOM_OUT_H_
#define __FIXED_ZOOM_OUT_H_

// ArcObjects Headers
// Engine
#include <ArcSDK.h>
// Controls
#include <Ao/AoControls.h>
// Custom Tool
#include <Ao/AoCommandBase.h>

class FixedZoomOut : public CAoCommandBase
{
 public:
  FixedZoomOut();
  ~FixedZoomOut();
  
  // ICommand
  HRESULT get_Enabled(VARIANT_BOOL* Enabled);
  HRESULT get_Checked(VARIANT_BOOL* Checked) ;
  HRESULT get_Name(BSTR* Name);
  HRESULT get_Caption(BSTR* Caption);
  HRESULT get_Tooltip(BSTR* Tooltip);
  HRESULT get_Message(BSTR* Message);
  HRESULT get_Bitmap(OLE_HANDLE* bitmapFile);
  HRESULT get_Category(BSTR* categoryName);
  HRESULT OnCreate(IDispatch* hook);
  HRESULT OnClick();
  
 private:
  IHookHelperPtr m_ipHookHelper;
  OLE_HANDLE m_hBitmap;
};

#endif   // #define __FIXED_ZOOM_OUT_H_