00001 #if !defined(AFX_PANEL_VKEYCONTROLLER_H__9860C9D2_F416_468D_9144_1ECD4F238CC4__INCLUDED_)
00002 #define AFX_PANEL_VKEYCONTROLLER_H__9860C9D2_F416_468D_9144_1ECD4F238CC4__INCLUDED_
00003
00004 #include "Panel.h"
00005
00006 class VGenericKeyIterator;
00007 class VAbstractEditor;
00008
00009 #if _MSC_VER >= 1000
00010 #pragma once
00011 #endif // _MSC_VER >= 1000
00012
00013
00014
00016
00017
00018 class VPanel_VKeyController : public VPanel
00019 {
00020
00021 public:
00022 void UpdateFrame();
00023 VPanel_VKeyController(CWnd* pParent = NULL);
00024
00025
00026
00027 enum { IDD = IDD_PANEL_KEYCONTROLLER };
00028 CScrollBar m_scrollFrame;
00029 CEdit m_FrameNum;
00030 int m_nFrameNum;
00031
00032
00033 VGenericKeyIterator* m_pController;
00034
00035
00036
00037
00038 protected:
00039 virtual void DoDataExchange(CDataExchange* pDX);
00040
00041
00042
00043 protected:
00044
00045 CBitmapButton delbutton, addbutton;
00046 VAbstractEditor* m_pCurrentEditor;
00047
00048 int m_nCurrentPos;
00049
00050 void UpdatePanel();
00051
00052
00053 afx_msg void OnClickAddKeyFrame();
00054 afx_msg void OnClickDeleteKeyFrame();
00055 virtual BOOL OnInitDialog();
00056 afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
00057 afx_msg void OnDestroy();
00058 afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
00059
00060 DECLARE_MESSAGE_MAP()
00061 };
00062
00063
00064
00065
00066 #endif // !defined(AFX_PANEL_VKEYCONTROLLER_H__9860C9D2_F416_468D_9144_1ECD4F238CC4__INCLUDED_)