OSDN Git Service

Shell Extension for Windows 11 or later (5)
[winmerge-jp/winmerge-jp.git] / Src / DiffViewBar.h
1 /** 
2  * @file  DiffViewBar.h
3  *
4  * @brief Declaration of CDiffViewBar class
5  */
6 #pragma once
7
8 #include "scbarcf.h"
9
10 class CSplitterWndEx;
11
12 // You must #define this for viewbar to compile properly
13 #define TViewBarBase CSizingControlBarCF
14
15 class CDiffViewBar : public TViewBarBase
16 {
17         DECLARE_DYNAMIC(CDiffViewBar);
18 public:
19         CDiffViewBar();
20         virtual ~CDiffViewBar();
21         virtual BOOL Create(
22                 CWnd* pParentWnd,                       // mandatory
23                 LPCTSTR lpszWindowName = nullptr,
24                 DWORD dwStyle = WS_CHILD | WS_VISIBLE | CBRS_TOP,
25                 UINT nID = AFX_IDW_PANE_FIRST);
26
27         void SetFrameHwnd(HWND hwndFrame);
28         void UpdateResources();
29
30 // Overrides
31         // ClassWizard generated virtual function overrides
32         //{{AFX_VIRTUAL(CDiffViewBar)
33 public:
34         //}}AFX_VIRTUAL
35
36
37         //{{AFX_MSG(CDiffViewBar)
38         afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
39         afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
40         afx_msg void OnWindowPosChanged(WINDOWPOS* lpwndpos);
41         //}}AFX_MSG
42         DECLARE_MESSAGE_MAP()
43
44 private:
45         HWND m_hwndFrame; //*< Frame window handle */
46
47 };