Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
2.1 KiB

  1. #if !defined(AFX_SELECTSYSTEMSDLG_H__B15FC9AA_5A42_11D3_BE46_0000F87A3912__INCLUDED_)
  2. #define AFX_SELECTSYSTEMSDLG_H__B15FC9AA_5A42_11D3_BE46_0000F87A3912__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // SelectSystemsDlg.h : header file
  7. //
  8. #include "ResizeableDialog.h"
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CSelectSystemsDlg dialog
  11. class CSelectSystemsDlg : public CResizeableDialog
  12. {
  13. // Construction
  14. public:
  15. CSelectSystemsDlg(CWnd* pParent = NULL); // standard constructor
  16. // Dialog Data
  17. //{{AFX_DATA(CSelectSystemsDlg)
  18. enum { IDD = IDD_DIALOG_NEW_SYSTEM };
  19. CEdit m_SystemsEditBox;
  20. CListCtrl m_SystemsList;
  21. CComboBox m_Domains;
  22. CString m_sDomain;
  23. CString m_sSystems;
  24. //}}AFX_DATA
  25. CStringArray m_saSystems;
  26. // Overrides
  27. // ClassWizard generated virtual function overrides
  28. //{{AFX_VIRTUAL(CSelectSystemsDlg)
  29. protected:
  30. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  31. //}}AFX_VIRTUAL
  32. // Implementation
  33. protected:
  34. static UINT AddDomains(LPVOID pParam);
  35. static UINT AddSystems(LPVOID pParam);
  36. inline void CompileArrayOfSystems();
  37. inline bool IsInSystemArray(const CString& sSystem);
  38. inline bool CheckSystemNames();
  39. // Generated message map functions
  40. //{{AFX_MSG(CSelectSystemsDlg)
  41. virtual BOOL OnInitDialog();
  42. afx_msg void OnDblclkListSystems(NMHDR* pNMHDR, LRESULT* pResult);
  43. virtual void OnOK();
  44. virtual void OnCancel();
  45. afx_msg void OnButtonHelp();
  46. afx_msg void OnDropdownComboDomain();
  47. afx_msg void OnCloseupComboDomain();
  48. afx_msg void OnSelendokComboDomain();
  49. afx_msg void OnChangeEditSystems();
  50. afx_msg void OnButtonCheckNames();
  51. afx_msg void OnSetfocusListSystems(NMHDR* pNMHDR, LRESULT* pResult);
  52. afx_msg void OnKillfocusListSystems(NMHDR* pNMHDR, LRESULT* pResult);
  53. afx_msg void OnButtonAdd();
  54. afx_msg void OnClickListSystems(NMHDR* pNMHDR, LRESULT* pResult);
  55. //}}AFX_MSG
  56. DECLARE_MESSAGE_MAP()
  57. };
  58. //{{AFX_INSERT_LOCATION}}
  59. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  60. #endif // !defined(AFX_SELECTSYSTEMSDLG_H__B15FC9AA_5A42_11D3_BE46_0000F87A3912__INCLUDED_)