56 lines
1.4 KiB
C
56 lines
1.4 KiB
C
|
//
|
||
|
// mvEdit.h : header file for multi-valued string edit dialog
|
||
|
//
|
||
|
|
||
|
#ifndef __MVEDIT_H_INCLUDED__
|
||
|
#define __MVEDIT_H_INCLUDED__
|
||
|
|
||
|
/////////////////////////////////////////////////////////////////////////////
|
||
|
// CMultiValuedStringEdit dialog
|
||
|
|
||
|
class CMultiValuedStringEdit : public CDialog
|
||
|
{
|
||
|
public:
|
||
|
// CMultiValuedStringEdit(CWnd* pParent = NULL);
|
||
|
CMultiValuedStringEdit(CWnd* pParent = NULL, int nDlgTitle = 0, int nText = 0, UINT uiStringLengthLimit = 0);
|
||
|
|
||
|
enum { IDD = IDD_MVSTRINGEDIT };
|
||
|
|
||
|
protected:
|
||
|
|
||
|
// Generated message map functions
|
||
|
//{{AFX_MSG(CMultiValuedStringEdit)
|
||
|
virtual BOOL OnInitDialog();
|
||
|
afx_msg void OnString();
|
||
|
afx_msg void OnAdd();
|
||
|
afx_msg void OnRemove();
|
||
|
afx_msg void OnList(NMHDR* pNMHDR, LRESULT* pResult);
|
||
|
afx_msg BOOL OnHelp(WPARAM wParam, LPARAM lParam);
|
||
|
afx_msg BOOL OnContextHelp(WPARAM wParam, LPARAM lParam);
|
||
|
virtual void OnOK();
|
||
|
//}}AFX_MSG
|
||
|
DECLARE_MESSAGE_MAP()
|
||
|
|
||
|
public:
|
||
|
HRESULT put_Strings(IN LPCTSTR i_pszValues, IN LPCTSTR i_pszSeparators);
|
||
|
HRESULT get_Strings(OUT CString& o_strValues);
|
||
|
|
||
|
protected:
|
||
|
CString m_strSeparators;
|
||
|
CString m_strValues;
|
||
|
int m_nDlgTitle;
|
||
|
int m_nText;
|
||
|
UINT m_uiStringLengthLimit;
|
||
|
};
|
||
|
|
||
|
HRESULT InvokeMultiValuedStringEditDlg(
|
||
|
IN CWnd* i_pParent,
|
||
|
IN CString& io_str,
|
||
|
IN LPCTSTR i_pszSeparators,
|
||
|
IN int i_nDlgTitle,
|
||
|
IN int i_nText,
|
||
|
IN UINT i_uiStringLengthLimit
|
||
|
);
|
||
|
|
||
|
#endif // __MVEDIT_H_INCLUDED__
|