acl/lib_acl_cpp/samples/HttpClient/HttpClientDlg.h

41 lines
895 B
C
Raw Normal View History

// HttpClientDlg.h : 头文件
2014-11-19 00:25:21 +08:00
//
#pragma once
#include "acl_cpp/stream/aio_handle.hpp"
#include "acl_cpp/http/http_service.hpp"
// CHttpClientDlg 对话框
2014-11-19 00:25:21 +08:00
class CHttpClientDlg : public CDialog
{
// 构造
2014-11-19 00:25:21 +08:00
public:
CHttpClientDlg(CWnd* pParent = NULL); // 标准构造函数
2014-11-19 00:25:21 +08:00
~CHttpClientDlg();
// 对话框数据
2014-11-19 00:25:21 +08:00
enum { IDD = IDD_HTTPCLIENT_DIALOG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
2014-11-19 00:25:21 +08:00
// 实现
2014-11-19 00:25:21 +08:00
protected:
HICON m_hIcon;
// 生成的消息映射函数
2014-11-19 00:25:21 +08:00
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnBnClickedDownload();
afx_msg LRESULT OnDownloadOk(WPARAM wParam, LPARAM lParam);
private:
acl::aio_handle handle_;
acl::http_service* service_;
};