mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-15 01:10:52 +08:00
60 lines
1.1 KiB
C
60 lines
1.1 KiB
C
|
|
|||
|
// HttpGetDlg.h: 头文件
|
|||
|
//
|
|||
|
|
|||
|
#pragma once
|
|||
|
|
|||
|
|
|||
|
// CHttpGetDlg 对话框
|
|||
|
class CHttpGetDlg : public CDialogEx
|
|||
|
{
|
|||
|
// 构造
|
|||
|
public:
|
|||
|
CHttpGetDlg(CWnd* pParent = nullptr); // 标准构造函数
|
|||
|
|
|||
|
// 对话框数据
|
|||
|
#ifdef AFX_DESIGN_TIME
|
|||
|
enum { IDD = IDD_HTTPGET_DIALOG };
|
|||
|
#endif
|
|||
|
|
|||
|
protected:
|
|||
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
|
|||
|
|
|||
|
|
|||
|
// 实现
|
|||
|
protected:
|
|||
|
HICON m_hIcon;
|
|||
|
|
|||
|
// 生成的消息映射函数
|
|||
|
virtual BOOL OnInitDialog();
|
|||
|
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
|
|||
|
afx_msg void OnPaint();
|
|||
|
afx_msg HCURSOR OnQueryDragIcon();
|
|||
|
DECLARE_MESSAGE_MAP()
|
|||
|
|
|||
|
private:
|
|||
|
void InitFiber();
|
|||
|
|
|||
|
public:
|
|||
|
afx_msg void OnBnClickedOk();
|
|||
|
afx_msg void OnBnClickedCancel();
|
|||
|
afx_msg void OnBnClickedStartGet();
|
|||
|
afx_msg void OnBnClickedReset();
|
|||
|
|
|||
|
private:
|
|||
|
CProgressCtrl m_progress;
|
|||
|
CEdit m_url;
|
|||
|
CEdit m_request;
|
|||
|
CEdit m_response;
|
|||
|
|
|||
|
long long m_length;
|
|||
|
|
|||
|
public:
|
|||
|
void SetError(const char* fmt, ...);
|
|||
|
|
|||
|
void SetRequestHead(const char* str);
|
|||
|
void SetResponseHead(const char* str);
|
|||
|
void SetBodyTotalLength(long long length);
|
|||
|
void SetBodyLength(long long length);
|
|||
|
};
|