00001
00002
00004
00005 #if !defined(AFX_MAINFRM_H__8DBD199F_8030_4EE9_834D_57CFD8DE86C0__INCLUDED_)
00006 #define AFX_MAINFRM_H__8DBD199F_8030_4EE9_834D_57CFD8DE86C0__INCLUDED_
00007
00008 #if _MSC_VER >= 1000
00009 #pragma once
00010 #endif // _MSC_VER >= 1000
00011
00012
00013
00014 #if (_WIN32_WCE < 201)
00015 static TBBUTTON g_arCBButtons[] = {
00016 { 0, ID_FILE_NEW, TBSTATE_ENABLED, TBSTYLE_BUTTON, 0, 0, 0, 0},
00017 { 1, ID_FILE_OPEN, TBSTATE_ENABLED, TBSTYLE_BUTTON, 0, 0, 0, 1},
00018 { 2, ID_FILE_SAVE, TBSTATE_ENABLED, TBSTYLE_BUTTON, 0, 0, 0, 2},
00019
00020 { 0, 0, TBSTATE_ENABLED, TBSTYLE_SEP, 0, 0, 0, -1},
00021
00022 { 3, ID_TOOL_DRAW, TBSTATE_ENABLED, TBSTYLE_BUTTON, 0, 0, 0, 3},
00023 { 4, ID_TOOL_ARROW, TBSTATE_ENABLED, TBSTYLE_BUTTON, 0, 0, 0, 4},
00024
00025 { 0, 0, TBSTATE_ENABLED, TBSTYLE_SEP, 0, 0, 0, -1},
00026
00027 { 5, ID_FRAME_PREVIOUS, TBSTATE_ENABLED, TBSTYLE_BUTTON, 0, 0, 0, 5},
00028 { 6, ID_FRAME_NEXT, TBSTATE_ENABLED, TBSTYLE_BUTTON, 0, 0, 0, 6},
00029 { 7, ID_ANIMATE, TBSTATE_ENABLED, TBSTYLE_CHECK, 0, 0, 0, 7},
00030
00031
00032
00033
00034 };
00035 #endif
00036
00037 #if defined(_WIN32_WCE_PSPC) && (_WIN32_WCE >= 212)
00038 #define NUM_TOOL_TIPS 8
00039 #endif
00040
00041
00042
00043 class CMainFrame : public CFrameWnd
00044 {
00045 protected:
00046 CMainFrame();
00047 DECLARE_DYNCREATE(CMainFrame)
00048
00049
00050 public:
00051
00052
00053 public:
00054
00055
00056
00057
00058 virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
00059
00060
00061
00062 public:
00063 virtual ~CMainFrame();
00064 #ifdef _DEBUG
00065 virtual void AssertValid() const;
00066 virtual void Dump(CDumpContext& dc) const;
00067 #endif
00068
00069 protected:
00070 CCeCommandBar m_wndCommandBar;
00071
00072
00073
00074 protected:
00075
00076 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
00077 afx_msg void OnCreateDocList(DLNHDR* pNotifyStruct, LRESULT* result);
00078 afx_msg LPTSTR MakeString(UINT stringID);
00079 afx_msg void OnDestroy();
00080 afx_msg void OnUpdateToolArrow(CCmdUI* pCmdUI);
00081 afx_msg void OnUpdateToolDraw(CCmdUI* pCmdUI);
00082 afx_msg void OnToolArrow();
00083 afx_msg void OnToolDraw();
00084 afx_msg void OnAnimate();
00085 afx_msg void OnUpdateAnimate(CCmdUI* pCmdUI);
00086 afx_msg void OnFramePrevious();
00087 afx_msg void OnFrameNext();
00088
00089 DECLARE_MESSAGE_MAP()
00090
00091 LPTSTR m_ToolTipsTable[NUM_TOOL_TIPS];
00092 };
00093
00095
00096
00097
00098
00099 #endif // !defined(AFX_MAINFRM_H__8DBD199F_8030_4EE9_834D_57CFD8DE86C0__INCLUDED_)