// MainFrm.h : interface of the CMainFrame class // ///////////////////////////////////////////////////////////////////////////// #if !defined(AFX_MAINFRM_H__09E1E1B9_1840_11D3_80D4_00105A07EA1C__INCLUDED_) #define AFX_MAINFRM_H__09E1E1B9_1840_11D3_80D4_00105A07EA1C__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #define RELOAD_ALWAYS_PROMPT 1 #define RELOAD_ALWAYS_NO_PROMPT 2 #define RELOAD_IF_ENGINE_CHANGED 3 //Flags to show which notification messages to display #define FLAG_NONE_MSG 0x00000000 #define FLAG_MOUSE_MSG 0x00000001 #define FLAG_KEY_MSG 0x00000002 #define FLAG_SIZE_MSG 0x00000004 #define FLAG_DRAGDROP_MSG 0x00000008 #define FLAG_ZOOM_MSG 0x00000010 #define FLAG_SCALE_MSG 0x00000020 #define FLAG_FOCUS_MSG 0x00000040 #define FLAG_SCROLL_MSG 0x00000080 #define FLAG_PAINT_MSG 0x00000100 #define FLAG_VECTORCHANGED_MSG 0x00000200 #define FLAG_ALL_MSG 0x000003FF class CMainFrame : public CMDIFrameWnd { DECLARE_DYNAMIC(CMainFrame) public: CMainFrame(); // Attributes public: // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CMainFrame) virtual BOOL PreCreateWindow(CREATESTRUCT& cs); //}}AFX_VIRTUAL // Implementation public: virtual ~CMainFrame(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif public: L_BOOL m_bCreateAsControl; L_UINT32 m_uNotificationMessageFlag; void UpdateStatusBar(L_UINT32 uFlagMsg, L_TCHAR *szMsg, pVECTORPOINT pPoint=NULL); L_BOOL m_bApplyTransformsBeforeSave; protected: // control bar embedded members CStatusBar m_wndStatusBar; CToolBar m_wndToolBar; // Generated message map functions protected: //{{AFX_MSG(CMainFrame) afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg void OnPreferencesApplytransformsbeforesaving(); afx_msg void OnUpdatePreferencesApplytransformsbeforesaving(CCmdUI* pCmdUI); afx_msg void OnHelpInstructions(); afx_msg void OnCustomPane(CCmdUI *pCmdUI); afx_msg void OnPreferencesShowDragdrop(); afx_msg void OnUpdatePreferencesShowDragdrop(CCmdUI* pCmdUI); afx_msg void OnPreferencesShowFocus(); afx_msg void OnUpdatePreferencesShowFocus(CCmdUI* pCmdUI); afx_msg void OnPreferencesShowKey(); afx_msg void OnUpdatePreferencesShowKey(CCmdUI* pCmdUI); afx_msg void OnPreferencesShowMouse(); afx_msg void OnUpdatePreferencesShowMouse(CCmdUI* pCmdUI); afx_msg void OnPreferencesShowPaint(); afx_msg void OnUpdatePreferencesShowPaint(CCmdUI* pCmdUI); afx_msg void OnPreferencesShowScroll(); afx_msg void OnUpdatePreferencesShowScroll(CCmdUI* pCmdUI); afx_msg void OnPreferencesShowSize(); afx_msg void OnUpdatePreferencesShowSize(CCmdUI* pCmdUI); afx_msg void OnUpdatePreferencesShowVector(CCmdUI* pCmdUI); afx_msg void OnPreferencesShowVector(); afx_msg void OnPreferencesShowZoom(); afx_msg void OnUpdatePreferencesShowZoom(CCmdUI* pCmdUI); afx_msg void OnPreferencesShowNone(); afx_msg void OnUpdatePreferencesShowNone(CCmdUI* pCmdUI); afx_msg void OnPreferencesShowAll(); afx_msg void OnUpdatePreferencesShowAll(CCmdUI* pCmdUI); afx_msg void OnPreferencesUselvectorwindowasControl(); afx_msg void OnUpdatePreferencesUselvectorwindowasControl(CCmdUI* pCmdUI); afx_msg void OnPreferencesUselvectorwindowasWindow(); afx_msg void OnUpdatePreferencesUselvectorwindowasWindow(CCmdUI* pCmdUI); afx_msg void OnPreferencesShowScale(); afx_msg void OnUpdatePreferencesShowScale(CCmdUI* pCmdUI); afx_msg void OnPaletteChanged(CWnd* pFocusWnd); afx_msg BOOL OnQueryNewPalette(); afx_msg void OnDestroy(); afx_msg void OnPreferencesAutomation(); afx_msg void OnUpdatePreferencesAutomation(CCmdUI* pCmdUI); afx_msg void OnSysColorChange(); afx_msg void OnPaletteIsChanging(CWnd* pRealizeWnd); afx_msg void OnDropFiles(HDROP hDropInfo); //}}AFX_MSG DECLARE_MESSAGE_MAP() private: L_INT GetDocumentCount(); }; ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_MAINFRM_H__09E1E1B9_1840_11D3_80D4_00105A07EA1C__INCLUDED_)