From 5fabc6e0c9ea14a7cd5a2cfdd0788a8b21f6d5cc Mon Sep 17 00:00:00 2001 From: mjjo Date: Sat, 20 Jul 2013 23:23:07 +0000 Subject: [PATCH] --- HookMsg/DlgEditTool.h | 76 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 HookMsg/DlgEditTool.h diff --git a/HookMsg/DlgEditTool.h b/HookMsg/DlgEditTool.h new file mode 100644 index 0000000..c9eba62 --- /dev/null +++ b/HookMsg/DlgEditTool.h @@ -0,0 +1,76 @@ +#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_)