You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

89 lines
2.5 KiB
C++

// MainFrm.h : CMainFrame 类的接口
//
#pragma once
#include "OutputWnd.h"
#include "Resource.h"
#include "PaneDialogTmp.h"
#include "DlgGraphEdit.h"
class CMainFrame : public CMDIFrameWndEx
{
DECLARE_DYNAMIC(CMainFrame)
public:
CMainFrame();
// 特性
public:
// 操作
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();
// 重写
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual BOOL LoadFrame(UINT nIDResource, DWORD dwDefaultStyle = WS_OVERLAPPEDWINDOW | FWS_ADDTOTITLE, CWnd* pParentWnd = NULL, CCreateContext* pContext = NULL);
// 实现
public:
virtual ~CMainFrame();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
public: // 控件条嵌入成员
CMFCMenuBar m_wndMenuBar;
CMFCToolBar m_wndToolBar;
CMFCStatusBar m_wndStatusBar;
CMFCToolBarImages m_UserImages;
#ifdef __CAPTION_BAR__
CMFCCaptionBar m_wndCaptionBar;//标题栏
#endif
//可停靠窗口对象-----------------------------------------
CDlgGraphEdit m_DlgGraphEdit;
CPaneDialogTmp m_GraphEditPane;
CPaneDialogTmp m_DeviceMainPane;
// 生成的消息映射函数
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;//标题栏命令名称字符串
CString m_CaptionInputStr;//输入的字符串
CString m_StatusBarExtStr;//状态栏额外信息
public:
};