1 // WindowsManagerDialog.h : header file
7 #define WMD_LISTCOLOR_BKG RGB(255, 255, 213)
8 #define WMD_LISTCOLOR_BKGSEL RGB(255, 165, 0)
11 #define WMU_ISOPEN (WM_APP + 33)
13 #ifndef WMU_SELECTNEXT
14 #define WMU_SELECTNEXT (WM_APP + 34)
16 /////////////////////////////////////////////////////////////////////////////
17 // CWindowsManagerDialog dialog
19 class CWindowsManagerDialog : public CDialog
23 CWindowsManagerDialog(CWnd* pParent = NULL); // standard constructor
24 BOOL Create(UINT nID, CWnd* pWnd = NULL, BOOL bAutoCleanup = TRUE)
26 m_bAutoCleanup = bAutoCleanup;
27 m_pFrame = DYNAMIC_DOWNCAST(CMainFrame, pWnd);
29 return CDialog::Create(nID, pWnd);
33 //{{AFX_DATA(CWindowsManagerDialog)
34 enum { IDD = IDD_DIALOG_WINDOWSMANAGER };
35 // NOTE: the ClassWizard will add data members here
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; }
55 // ClassWizard generated virtual function overrides
56 //{{AFX_VIRTUAL(CWindowsManagerDialog)
59 virtual void OnCancel();
60 virtual BOOL PreTranslateMessage(MSG* pMsg);
62 virtual BOOL OnInitDialog();
63 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
64 virtual void PostNcDestroy();
65 virtual ~CWindowsManagerDialog();
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);
79 afx_msg LRESULT OnIsOpen(WPARAM wParam, LPARAM lParam);
80 afx_msg LRESULT OnSelectNext(WPARAM wParam, LPARAM lParam);
84 //{{AFX_INSERT_LOCATION}}
85 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.