代码拉取完成,页面将自动刷新
// httpResponseHead.cpp : 实现文件
//
#include "stdafx.h"
#include "NetSurveyW.h"
#include "httpResponseHead.h"
#include "afxdialogex.h"
// httpResponseHead 对话框
IMPLEMENT_DYNAMIC(httpResponseHead, CDialogEx)
int httpResponseHead::_count=0;
httpResponseHead::httpResponseHead(CWnd* pParent /*=NULL*/)
: CDialogEx(httpResponseHead::IDD, pParent)
{
}
httpResponseHead::~httpResponseHead()
{
}
void httpResponseHead::DoDataExchange(CDataExchange* pDX)
{
CDialogEx::DoDataExchange(pDX);
DDX_Control(pDX, IDC_LIST_RES_HEAD, m_list);
}
BEGIN_MESSAGE_MAP(httpResponseHead, CDialogEx)
ON_WM_SIZE()
ON_WM_SHOWWINDOW()
END_MESSAGE_MAP()
// httpResponseHead 消息处理程序
BOOL httpResponseHead::OnInitDialog()
{
CDialogEx::OnInitDialog();
// TODO: 在此添加额外的初始化
return TRUE; // return TRUE unless you set the focus to a control
// 异常: OCX 属性页应返回 FALSE
}
void httpResponseHead::OnSize(UINT nType, int cx, int cy)
{
CDialogEx::OnSize(nType, cx, cy);
// TODO: 在此处添加消息处理程序代码
if(_count==1){
CRect rec;
GetClientRect(&rec);
m_list.MoveWindow(rec);
m_list.InsertColumn(0,"键",LVCFMT_LEFT,rec.Width()/2);
m_list.InsertColumn(1,"值",LVCFMT_LEFT,rec.Width()/2);
m_list.SetExtendedStyle(LVS_EX_FULLROWSELECT|LVS_EX_GRIDLINES);
}
_count++;
}
void httpResponseHead::OnShowWindow(BOOL bShow, UINT nStatus)
{
CDialogEx::OnShowWindow(bShow, nStatus);
// TODO: 在此处添加消息处理程序代码
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。