OSDN Git Service

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