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.

55 lines
1.4 KiB

  1. //
  2. // mvEdit.h : header file for multi-valued string edit dialog
  3. //
  4. #ifndef __MVEDIT_H_INCLUDED__
  5. #define __MVEDIT_H_INCLUDED__
  6. /////////////////////////////////////////////////////////////////////////////
  7. // CMultiValuedStringEdit dialog
  8. class CMultiValuedStringEdit : public CDialog
  9. {
  10. public:
  11. // CMultiValuedStringEdit(CWnd* pParent = NULL);
  12. CMultiValuedStringEdit(CWnd* pParent = NULL, int nDlgTitle = 0, int nText = 0, UINT uiStringLengthLimit = 0);
  13. enum { IDD = IDD_MVSTRINGEDIT };
  14. protected:
  15. // Generated message map functions
  16. //{{AFX_MSG(CMultiValuedStringEdit)
  17. virtual BOOL OnInitDialog();
  18. afx_msg void OnString();
  19. afx_msg void OnAdd();
  20. afx_msg void OnRemove();
  21. afx_msg void OnList(NMHDR* pNMHDR, LRESULT* pResult);
  22. afx_msg BOOL OnHelp(WPARAM wParam, LPARAM lParam);
  23. afx_msg BOOL OnContextHelp(WPARAM wParam, LPARAM lParam);
  24. virtual void OnOK();
  25. //}}AFX_MSG
  26. DECLARE_MESSAGE_MAP()
  27. public:
  28. HRESULT put_Strings(IN LPCTSTR i_pszValues, IN LPCTSTR i_pszSeparators);
  29. HRESULT get_Strings(OUT CString& o_strValues);
  30. protected:
  31. CString m_strSeparators;
  32. CString m_strValues;
  33. int m_nDlgTitle;
  34. int m_nText;
  35. UINT m_uiStringLengthLimit;
  36. };
  37. HRESULT InvokeMultiValuedStringEditDlg(
  38. IN CWnd* i_pParent,
  39. IN CString& io_str,
  40. IN LPCTSTR i_pszSeparators,
  41. IN int i_nDlgTitle,
  42. IN int i_nText,
  43. IN UINT i_uiStringLengthLimit
  44. );
  45. #endif // __MVEDIT_H_INCLUDED__