2 Star 6 Fork 3

qazxlf / NetSurveyW

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
httpResponseHead.cpp 1.41 KB
一键复制 编辑 原始数据 按行查看 历史
qazxlf 提交于 2014-08-27 14:07 . 新建界面
// 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: 在此处添加消息处理程序代码
}
C++
1
https://gitee.com/xulongfei0612/NetSurveyW.git
git@gitee.com:xulongfei0612/NetSurveyW.git
xulongfei0612
NetSurveyW
NetSurveyW
master

搜索帮助