Develop and Download Open Source Software

Browse Subversion Repository

Annotation of /WinCS/PluginTransferDlg.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 16 - (hide annotations) (download) (as text)
Mon Jun 28 05:40:57 2010 UTC (13 years, 9 months ago) by sho1get
File MIME type: text/x-chdr
File size: 1547 byte(s)
Update_20100628
1 sho1get 11 #pragma once
2    
3     #include "afxwin.h"
4     #include "afxcmn.h"
5    
6     //////////////////////////////////////////////////////////////////////////
7    
8     class CPluginTransferDlg : public CDialog, CStringConvert
9     {
10     DECLARE_DYNAMIC(CPluginTransferDlg)
11    
12     public:
13     CPluginTransferDlg(CWnd* pParent = NULL);
14     virtual ~CPluginTransferDlg();
15     enum { IDD = IDD_PLUGIN_TRANSFER_DIALOG };
16    
17     void SetPluginList(const PluginList &list) { m_Pluginlist.Copy(list); }
18     void SetPlugin(const CString &cs) { m_xEditPlugin.SetWindowText(cs); }
19     void SetSendToSlave(WORD wNodeID, DWORD dwAddress);
20     void SetProgress(int nPoint);
21 sho1get 16 void SetCallback(CWnd *wnd) { m_pTgtWnd = wnd; }
22 sho1get 11 void GetSendList(IntList &list) { list.Copy(m_SendList); }
23     BOOL IsSending() { return m_fSending; }
24    
25     protected:
26     DECLARE_MESSAGE_MAP()
27     virtual BOOL OnInitDialog();
28     virtual void DoDataExchange(CDataExchange* pDX);
29    
30     afx_msg void OnClose();
31     afx_msg void OnBnClickedOk() {}
32     afx_msg void OnBnClickedBtnPluginTransferSend();
33     afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
34     afx_msg LRESULT OnPluginTransferError(WPARAM wParam, LPARAM lParam);
35    
36     public:
37     CCheckListBox m_xListPlugin;
38     CProgressCtrl m_xProgress;
39     CButton m_xBtnSend;
40     CStatic m_xTxtState;
41     CStatic m_xTxtPercent;
42     CEdit m_xEditPlugin;
43     CEdit m_xEditSendTo;
44    
45     protected:
46     PluginList m_Pluginlist;
47     IntList m_SendList;
48     HICON m_hIcon;
49     BOOL m_fSending;
50     CWnd *m_pTgtWnd;
51     };
52    
53     //////////////////////////////////////////////////////////////////////////

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26