📄 mainfrm.h
字号:
// MainFrm.h : interface of the RxMainFrame class///////////////////////////////////////////////////////////////////////////////#if !defined(AFX_MAINFRM_H__0C1AA455_6C5B_4BCF_BE10_97538C103CCC__INCLUDED_)#define AFX_MAINFRM_H__0C1AA455_6C5B_4BCF_BE10_97538C103CCC__INCLUDED_#if _MSC_VER > 1000#pragma once#endif // _MSC_VER > 1000#include "Caption.h"typedef struct{ int nID; int nSide; int nHelp; int nTP;} _FSTATUS;#define RXSERIES_REF 0#define RXSERIES_FLT 1#define RXSERIES_COM 2class RxFMWnd;class RxFrameTop;class RxFrameBottom;class RxFrameSide;class RxFrameHelp;class RxFrameTuning;class RxFramePreset;class RxFrameMain;class RxToolTipCtrl;class RxMainFrame : public CFrameWnd{public: RxMainFrame();protected: DECLARE_DYNAMIC(RxMainFrame)// Attributespublic: RxCaption m_Caption; CRect m_rcInitialFrame; int m_nOldMainMenuID; int m_nCurMainMenuID; int m_nCurSeries; UINT m_nActiveTop; RxFMWnd *m_pActiveWnd; BOOL m_bOverlapTuning; CPtrArray m_ArrayStatus; // 阿 徘俊 蝶弗 Tuning/Preset/Help滚瓢狼 惑怕 RxToolTipCtrl *m_pWndToolTip; RxFrameTop *m_pWndTop; RxFrameBottom *m_pWndBottom; RxFrameSide *m_pWndSide; RxFrameHelp *m_pWndHelp; RxFrameTuning *m_pWndTuning; RxFramePreset *m_pWndPreset; RxFrameMain *m_pWndMain;// Operationspublic: BOOL SetCurMainMenu (int nID, BOOL bWithControl = TRUE); int GetCurMainMenu () { return m_nCurMainMenuID; } int GetOldMainMenu () { return m_nOldMainMenuID; } BOOL SetCurSeries (int nIndex, BOOL bWithControl = TRUE); int GetCurSeries () { return m_nCurSeries; } UINT IsTopActived (); void SetActiveWnd (RxFMWnd *pWndCur); RxFMWnd* GetActiveWnd (); void ToolTipTrack (CPoint point, LPCTSTR lpszText); void ToolTipHide (); // getting fixed rect fuctions void GetFrameRectTop (CRect &rect); void GetFrameRectSide (CRect &rect); void GetFrameRectBottom (CRect &rect); void GetFrameRectTuning (CRect &rect); void GetFrameRectMain (CRect &rect); void GetFMWndRectLoad (CRect &rect); void OnOpenDicom (); void InitStatus (); void AddStatus (int nID, int nSide, int nHelp, int nTP); void SwitchToStatus (int nID); void SetStatusHelp (int nHelp); void SetStatusTP (int nTPreset); _FSTATUS* GetStatus (int nID); void RemoveAllStatus (); void RecalcFrameWnd (int cx, int cy);// Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(RxMainFrame) virtual BOOL PreCreateWindow(CREATESTRUCT& cs); virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo); //}}AFX_VIRTUAL// Implementationpublic: virtual ~RxMainFrame();#ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const;#endif// Generated message map functionsprotected: //{{AFX_MSG(RxMainFrame) afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg void OnSetFocus(CWnd *pOldWnd); afx_msg void OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI); afx_msg void OnSize(UINT nType, int cx, int cy); afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized); afx_msg BOOL OnEraseBkgnd(CDC* pDC); //}}AFX_MSG afx_msg void OnInitialUpdate(); afx_msg void OnFBSeriesChanged(NMHDR* pNMHDR, LRESULT* pResult); afx_msg void OnFTTabChanged(NMHDR* pNMHDR, LRESULT* pResult); DECLARE_MESSAGE_MAP()};///////////////////////////////////////////////////////////////////////////////{{AFX_INSERT_LOCATION}}// Microsoft Visual C++ will insert additional declarations immediately before the previous line.#endif // !defined(AFX_MAINFRM_H__0C1AA455_6C5B_4BCF_BE10_97538C103CCC__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -