PanUp.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 __PAN_UP_H_ #define __PAN_UP_H_ // ArcObjects Headers // Engine #include <ArcSDK.h> // Controls #include <Ao/AoControls.h> // Custom Tool #include <Ao/AoCommandBase.h> class PanUp : public CAoCommandBase { public: PanUp(); ~PanUp(); // 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; HRESULT GetPanFactor(double* dPanFactor); }; #endif // #define __PAN_UP_H_