OSDN Git Service

Fix build errors
[winmerge-jp/winmerge-jp.git] / Src / WindowsManagerDialog.h
1 // WindowsManagerDialog.h : header file
2
3 #pragma once
4
5 #include "MainFrm.h"
6
7 #define WMD_LISTCOLOR_BKG                                       RGB(255, 255, 213)
8 #define WMD_LISTCOLOR_BKGSEL                            RGB(255, 165, 0)
9
10 #ifndef WMU_ISOPEN
11 #define WMU_ISOPEN                                                      (WM_APP + 33)
12 #endif
13 #ifndef WMU_SELECTNEXT
14 #define WMU_SELECTNEXT                                          (WM_APP + 34)
15 #endif
16 /////////////////////////////////////////////////////////////////////////////
17 // CWindowsManagerDialog dialog
18
19 class CWindowsManagerDialog : public CDialog
20 {
21 // Construction
22 public:
23         CWindowsManagerDialog(CWnd* pParent = NULL);   // standard constructor
24         BOOL Create(UINT nID, CWnd* pWnd = NULL, BOOL bAutoCleanup = TRUE)
25         {
26                 m_bAutoCleanup = bAutoCleanup;
27                 m_pFrame = DYNAMIC_DOWNCAST(CMainFrame, pWnd);
28
29                 return CDialog::Create(nID, pWnd);
30         }
31
32 // Dialog Data
33         //{{AFX_DATA(CWindowsManagerDialog)
34         enum { IDD = IDD_DIALOG_WINDOWSMANAGER };
35                 // NOTE: the ClassWizard will add data members here
36         //}}AFX_DATA
37
38 public:
39         void PopulateList();
40         void SetParentWnd(CWnd* pWnd);
41         CWnd* GetParentWnd() { return DYNAMIC_DOWNCAST(CWnd, m_pFrame); }
42         BOOL GetAutoCleanup() const { return m_bAutoCleanup; }
43         void SetAutoCleanup(const BOOL bSet) { m_bAutoCleanup = bSet; }
44
45 protected:
46         CListCtrl m_List;
47         CImageList* m_pIL;
48         BOOL m_bAutoCleanup;
49         CMainFrame* m_pFrame;
50
51 protected:
52         void AdjustSize();
53
54 // Overrides
55         // ClassWizard generated virtual function overrides
56         //{{AFX_VIRTUAL(CWindowsManagerDialog)
57 public:
58         virtual void OnOK();
59         virtual void OnCancel();
60         virtual BOOL PreTranslateMessage(MSG* pMsg);
61 protected:
62         virtual BOOL OnInitDialog();
63         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
64         virtual void PostNcDestroy();
65         virtual ~CWindowsManagerDialog();
66         //}}AFX_VIRTUAL
67
68 // Implementation
69 protected:
70         // Generated message map functions
71         //{{AFX_MSG(CWindowsManagerDialog)
72         afx_msg void OnClose();
73         afx_msg void OnSize(UINT nType, int cx, int cy);
74         afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
75         afx_msg void OnDestroy();
76         afx_msg void OnNMCustomdrawListFile(NMHDR* pNMHDR, LRESULT* pResult);
77         afx_msg void OnNMDblclkListFile(NMHDR *pNMHDR, LRESULT *pResult);
78         //}}AFX_MSG
79         afx_msg LRESULT OnIsOpen(WPARAM wParam, LPARAM lParam);
80         afx_msg LRESULT OnSelectNext(WPARAM wParam, LPARAM lParam);
81         DECLARE_MESSAGE_MAP()
82 };
83
84 //{{AFX_INSERT_LOCATION}}
85 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.