|
|
|
|
|
|
|
|
|
// MainFrm.h : CMainFrame <20><><EFBFBD>Ľӿ<C4BD>
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
#include "OutputWnd.h"
|
|
|
|
|
#include "Resource.h"
|
|
|
|
|
#include "PaneDialogTmp.h"
|
|
|
|
|
#include "DlgGraphEdit.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CMainFrame : public CMDIFrameWndEx
|
|
|
|
|
{
|
|
|
|
|
DECLARE_DYNAMIC(CMainFrame)
|
|
|
|
|
public:
|
|
|
|
|
CMainFrame();
|
|
|
|
|
|
|
|
|
|
// <20><><EFBFBD><EFBFBD>
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
// <20><><EFBFBD><EFBFBD>
|
|
|
|
|
public:
|
|
|
|
|
void ShowMouseCoord(CPoint point);
|
|
|
|
|
void ShowViewScale(double s);
|
|
|
|
|
void ResetCaptionBar();
|
|
|
|
|
void ResetStatusBarExtStr();
|
|
|
|
|
void SetStatusBarExtStr(CString str,CString val1,CString val2);
|
|
|
|
|
void SetCaptionCmdStr(CString str);
|
|
|
|
|
void SetCaptionInputStr(CString str);
|
|
|
|
|
void RefreashCaptionBar();
|
|
|
|
|
void UnBindingDlg();
|
|
|
|
|
void LockPane(bool bLock);
|
|
|
|
|
void ShowWindowMax();
|
|
|
|
|
void ShowWindowMin();
|
|
|
|
|
// <20><>д
|
|
|
|
|
public:
|
|
|
|
|
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
|
|
|
|
|
virtual BOOL LoadFrame(UINT nIDResource, DWORD dwDefaultStyle = WS_OVERLAPPEDWINDOW | FWS_ADDTOTITLE, CWnd* pParentWnd = NULL, CCreateContext* pContext = NULL);
|
|
|
|
|
// ʵ<><CAB5>
|
|
|
|
|
public:
|
|
|
|
|
virtual ~CMainFrame();
|
|
|
|
|
#ifdef _DEBUG
|
|
|
|
|
virtual void AssertValid() const;
|
|
|
|
|
virtual void Dump(CDumpContext& dc) const;
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
public: // <20>ؼ<EFBFBD><D8BC><EFBFBD>Ƕ<EFBFBD><C7B6><EFBFBD><EFBFBD>Ա
|
|
|
|
|
CMFCMenuBar m_wndMenuBar;
|
|
|
|
|
CMFCToolBar m_wndToolBar;
|
|
|
|
|
CMFCStatusBar m_wndStatusBar;
|
|
|
|
|
CMFCToolBarImages m_UserImages;
|
|
|
|
|
#ifdef __CAPTION_BAR__
|
|
|
|
|
CMFCCaptionBar m_wndCaptionBar;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
#endif
|
|
|
|
|
//<2F><>ͣ<EFBFBD><CDA3><EFBFBD><EFBFBD><EFBFBD>ڶ<EFBFBD><DAB6><EFBFBD>-----------------------------------------
|
|
|
|
|
|
|
|
|
|
CDlgGraphEdit m_DlgGraphEdit;
|
|
|
|
|
CPaneDialogTmp m_GraphEditPane;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CPaneDialogTmp m_DeviceMainPane;
|
|
|
|
|
// <20><><EFBFBD>ɵ<EFBFBD><C9B5><EFBFBD>Ϣӳ<CFA2>亯<EFBFBD><E4BAAF>
|
|
|
|
|
protected:
|
|
|
|
|
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
|
|
|
|
|
afx_msg void OnWindowManager();
|
|
|
|
|
afx_msg void OnViewCustomize();
|
|
|
|
|
afx_msg LRESULT OnToolbarCreateNew(WPARAM wp, LPARAM lp);
|
|
|
|
|
afx_msg void OnApplicationLook(UINT id);
|
|
|
|
|
afx_msg void OnUpdateApplicationLook(CCmdUI* pCmdUI);
|
|
|
|
|
afx_msg void OnViewCaptionBar();
|
|
|
|
|
afx_msg void OnUpdateViewCaptionBar(CCmdUI* pCmdUI);
|
|
|
|
|
afx_msg void OnOptions();
|
|
|
|
|
afx_msg void OnSettingChange(UINT uFlags, LPCTSTR lpszSection);
|
|
|
|
|
afx_msg LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
|
|
|
|
|
afx_msg BOOL OnCopyData(CWnd* pWnd, COPYDATASTRUCT* pCopyDataStruct);
|
|
|
|
|
DECLARE_MESSAGE_MAP()
|
|
|
|
|
|
|
|
|
|
BOOL CreateDockingWindows();
|
|
|
|
|
BOOL CreateCaptionBar();
|
|
|
|
|
private:
|
|
|
|
|
CString m_CaptionCmdStr;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD>
|
|
|
|
|
CString m_CaptionInputStr;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD>
|
|
|
|
|
CString m_StatusBarExtStr;//״̬<D7B4><CCAC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|