1 /////////////////////////////////////////////////////////////////////////////
2 // WinMerge: an interactive diff/merge utility
3 // Copyright (C) 1997 Dean P. Grimm
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 2 of the License, or
8 // (at your option) any later version.
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 /////////////////////////////////////////////////////////////////////////////
23 * @brief interface of the CHexMergeFrame class
28 #include "SplitterWndEx.h"
29 #include "EditorFilepathBar.h"
30 #include "MergeFrameCommon.h"
32 #define HEKSEDIT_INTERFACE_VERSION 2
38 * @brief Frame class for file compare, handles panes, statusbar etc.
40 class CHexMergeFrame : public CMergeFrameCommon
42 DECLARE_DYNCREATE(CHexMergeFrame)
48 void UpdateResources();
50 IHeaderBar * GetHeaderInterface();
51 CHexMergeDoc * GetMergeDoc() { return m_pMergeDoc; }
53 void UpdateAutoPaneResize();
54 void UpdateSplitter();
56 void SetActivePane(int nPane);
60 CSplitterWndEx m_wndSplitter;
61 CEditorFilePathBar m_wndFilePathBar;
62 CStatusBar m_wndStatusBar[3];
65 // ClassWizard generated virtual function overrides
66 //{{AFX_VIRTUAL(CHexMergeFrame)
68 virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
69 virtual void ActivateFrame(int nCmdShow = -1);
70 virtual BOOL DestroyWindow();
77 void SaveActivePane();
78 virtual ~CHexMergeFrame();
79 void CreateHexWndStatusBar(CStatusBar &, CWnd *);
80 // Generated message map functions
82 void UpdateHeaderSizes();
83 CHexMergeDoc * m_pMergeDoc;
85 //{{AFX_MSG(CHexMergeFrame)
86 afx_msg void OnMDIActivate(BOOL bActivate, CWnd* pActivateWnd, CWnd* pDeactivateWnd);
87 afx_msg void OnSize(UINT nType, int cx, int cy);
88 afx_msg void OnIdleUpdateCmdUI();
89 afx_msg LRESULT OnStorePaneSizes(WPARAM wParam, LPARAM lParam);
94 inline IHeaderBar *CHexMergeFrame::GetHeaderInterface()
96 return &m_wndFilePathBar;