ctrldlg.h
来自「网络文件传输,用于显示屏控制系统」· C头文件 代码 · 共 160 行
H
160 行
// ctrlDlg.h : header file
//
#if !defined(AFX_CTRLDLG_H__36510E84_2C0C_4368_854A_F5432E40EA72__INCLUDED_)
#define AFX_CTRLDLG_H__36510E84_2C0C_4368_854A_F5432E40EA72__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "afxinet.h"
#include "afxtempl.h"
/////////////////////////////////////////////////////////////////////////////
// CCtrlDlg dialog
class CCtrlDlg : public CDialog
{
// Construction
public:
void isconnettcp(SOCKET acc_sock, sockaddr_in acc_addr);
void send_file();
// void set_stabar(CString str);
void close_tcp();
void addinf(CString str);
BOOL flag_expen_treedir;
CString getitempath(HTREEITEM intem);
static int CALLBACK ShortItemProc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort);
static int CALLBACK CompareFunc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort);
void flashatt();
void flashdriver();
void flashtable();
void flashdir();
void delitem(unsigned char p_arr);
CString getcurrtimer();
void dowith_pro(SOCKET sock, int rec_len, BOOL tcp_pro, sockaddr_in in_addr,int p_soc);
CString m_ltd_pass;
long changport(CString portstr);
void initsocket();
CMenu menu,PopMenu;
CToolBar m_wndtoolbar;
CStatusBar m_StatusBar; //定义状态条指定状态:
void initpar();
CCtrlDlg(CWnd* pParent = NULL); // standard constructor
// CWinThread *Threadacc_tcp;
CWinThread *Threadrec_tcp;
CWinThread *Threadrec_udp;
CWinThread *Threadrec_pro;
// CWinThread *Threadacc_tcp;
// CWinThread *Threadrec_send;
HTREEITEM itemserver,inproitem,itemtcp,itemudp;
CImageList m_image;
CInternetSession *m_psession;
CFtpConnection *m_pconnection;
CFtpFileFind *m_filefind;
// Dialog Data
//{{AFX_DATA(CCtrlDlg)
enum { IDD = IDD_CTRL_DIALOG };
CProgressCtrl m_gtcp;
CStatic m_currsize;
CStatic m_currname;
CStatic m_currseri;
CEdit m_edit;
CTreeCtrl m_treedir;
CListCtrl m_listtable;
CListBox m_listcon;
CTreeCtrl m_tree;
CString m_server;
CString m_server_tcport;
CString m_server_udport;
CString m_tcport;
CString m_udport;
CString m_ltd;
CString m_ip;
CString m_name;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCtrlDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
CWinThread *Threadrec_send;
CWinThread *Threadacc_tcp;
BOOL OnToolTipText(UINT, NMHDR* pNMHDR, LRESULT* pResult);
// Generated message map functions
//{{AFX_MSG(CCtrlDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnTbstartcp();
afx_msg void OnTbstartudp();
afx_msg void OnTbstoptcp();
afx_msg void OnTbstopudp();
afx_msg void OnMenustartcp();
afx_msg void OnMenustarudp();
afx_msg void OnMenustoptcp();
afx_msg void OnMenustopudp();
afx_msg void OnMenuchangtcport();
afx_msg void OnMenuchangudport();
afx_msg void OnMenuchangltd();
afx_msg void OnMenuchangserverdns();
afx_msg void OnMenuchangservertcport();
afx_msg void OnMenuchangserverudport();
afx_msg void OnRclickTree1(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnClickTree1(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnMenureflashserver();
afx_msg void OnMenutcpconnet();
afx_msg void OnMenuchangltdpass();
afx_msg void OnPopmenu2flash();
afx_msg void OnPopmen2uaddmycon();
afx_msg void OnPopmen3openlock();
afx_msg void OnPopmenu3adduser();
afx_msg void OnPopmenu3deluser();
afx_msg void OnPopmenu3editpass();
afx_msg void OnPopmenu3flash();
afx_msg void OnItemexpandingTree2(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnRclickTree2(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnPopmenu4exs();
afx_msg void OnRclickList1(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnPopmenu4sorb();
afx_msg void OnPopmenu4new();
afx_msg void OnPopmenu4del();
afx_msg void OnPopmenu4addtotable();
afx_msg void OnPopmenu5del();
afx_msg void OnPopmenu5up();
afx_msg void OnPopmenu5down();
afx_msg void OnBeginlabeleditTree2(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnEndlabeleditTree2(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnPopmenu4rename();
afx_msg void OnPopmenu4att();
afx_msg void OnPopmenu5att();
afx_msg void OnPopmenu4insettotable();
afx_msg void OnPopmenu5flash();
afx_msg void OnPopmenu5clear();
afx_msg void OnMenuset();
afx_msg void OnPopmenu3timeset();
afx_msg void OnPopmenu3dispatt();
afx_msg void OnDblclkTree1(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnPopmenu4upfile();
afx_msg void OnBot();
afx_msg void OnMensendctrl();
afx_msg void OnTimer(UINT nIDEvent);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CTRLDLG_H__36510E84_2C0C_4368_854A_F5432E40EA72__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?