📄 httpinternetdlg.h
字号:
// HttpInternetDlg.h : 头文件
//
#pragma once
#include "afxwin.h"
#include <afx.h>
#include <afxinet.h>
// CHttpInternetDlg 对话框
class CHttpInternetDlg : public CDialog
{
// 构造
public:
CHttpInternetDlg(CWnd* pParent = NULL); // 标准构造函数
// 对话框数据
enum { IDD = IDD_HTTPINTERNET_DIALOG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
public:
CInternetSession m_Session;
CStdioFile *hFile;
CString m_strHData;
int m_DayStartTime;
CTime DayStartTime;
CTime m_CurSystemTime;
int CurSystemTime;
BOOL m_IsSendStat;//是否发送开始信号
BOOL m_IsSendResult;//是否发送结果
int m_CurRound;//当前游戏局数
int m_State; //0-未开奖;1-已开奖。
int m_StartTime;//开始时间(秒)
int m_EndTime;//结束时间(秒)
BYTE m_Result[6];//结果,初始化为255(表示没有结果)
int m_RoundTime;//每局间隔时间(秒)
HANDLE m_handle;
BOOL m_Start;
public:
CString GetHttpFile();
// UINT SendServer();
void SendResult(int round,BYTE* result);
void SendStart(int round,int time);
// 实现
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()
public:
CString m_strUrl;
public:
CListBox m_ListBox;
public:
afx_msg void OnBnClickedStart();
public:
afx_msg void OnBnClickedStop();
public:
afx_msg void OnLbnSelchangeList1();
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -