77 lines
1.9 KiB
C++
77 lines
1.9 KiB
C++
#if !defined(AFX_DLGEDITTOOL_H__9261EA81_051D_11D7_A6E4_444553540000__INCLUDED_)
|
|
#define AFX_DLGEDITTOOL_H__9261EA81_051D_11D7_A6E4_444553540000__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
// DlgEditTool.h : header file
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CDlgEditTool dialog
|
|
|
|
class CDlgEditTool : public CDialog
|
|
{
|
|
// Construction
|
|
public:
|
|
void SetData(CString strSecName);
|
|
CDlgEditTool(CWnd* pParent = NULL); // standard constructor
|
|
|
|
private:
|
|
CString AddCodeString( CString strInput );
|
|
int SearchString(int nStartAfter, LPCTSTR lpszItem, BOOL bExact) const;
|
|
|
|
void SaveDataList();
|
|
void LoadDataList();
|
|
|
|
CString m_strSecName;
|
|
|
|
CListBox m_ctrlList;
|
|
CEdit m_ctrlEdit;
|
|
CWnd * m_pParent;
|
|
|
|
ICpStockCodePtr m_objStockCode;
|
|
|
|
void SetDlgCtrlPosition(int cx, int cy);
|
|
|
|
public:
|
|
|
|
// Dialog Data
|
|
//{{AFX_DATA(CDlgEditTool)
|
|
enum { IDD = IDD_DIALOG_EDIT };
|
|
|
|
//}}AFX_DATA
|
|
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CDlgEditTool)
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
protected:
|
|
|
|
// Generated message map functions
|
|
//{{AFX_MSG(CDlgEditTool)
|
|
virtual BOOL OnInitDialog();
|
|
afx_msg void OnOk();
|
|
virtual void OnCancel();
|
|
afx_msg void OnButtonInsert();
|
|
afx_msg void OnButtonDelete();
|
|
afx_msg void OnButtonDeleteall();
|
|
afx_msg void OnPaint();
|
|
afx_msg void OnSize(UINT nType, int cx, int cy);
|
|
afx_msg void OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI);
|
|
afx_msg void OnDestroy();
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
};
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_DLGEDITTOOL_H__9261EA81_051D_11D7_A6E4_444553540000__INCLUDED_)
|