自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 Dialog和FormView如何派生通用类

 派生通用类涉及到派生类的构造函数需要传递窗口ID和CWnd,所以要在派生类中事先定义好在Dialog中构造函数是这样定义的public: CDialogEx(); CDialogEx(UINT nIDTemplate, CWnd *pParent = NULL); CDialogEx(LPCTSTR lpszTemplateName, CWnd *pPa...

2018-04-19 09:37:00 224

原创 STL中erase()的陷阱

最近在刷stl源码剖析这本书时,对于vector的erase()函数引起了我的注意在删除单个元素时是这样定义的:iterator erase(iterator position){  if(position+1!=end())  {    copy(position+1,finish,postion);  }  --finish;  destroy(finish);  r...

2018-04-18 10:57:00 140

原创 socket 笔记(一)

#include "stdafx.h"#include "WINSOCK2.H"#pragma comment(lib,"WS2_32.lib") #define BUF_SIZE 64 //缓冲区大小int _tmain(int argc, _TCHAR* argv[]){ WSADATA wsd;//存储WSAStartup返回的数据windows sock...

2018-04-12 22:40:00 85

原创 prettyJson V7.1 使用

 头文件#include "document.h" #include "prettywriter.h" #include "filereadstream.h" #include "filewritestream.h" #include "stringbuffer.h"using namespace rapidjson; 输出jsonstd::map<..

2018-04-11 19:12:00 600

原创 字符串转换封装类

#include <memory>//定义Stl字符串类型,自动调用对应的类型#ifdef UNICODE#define StlString std::wstring #else#define StlString std::string#endifclass PLSimLocale{public: PLSimLocale(); ~PLSi...

2018-04-11 18:06:00 393

原创 字体下划线按钮

 #include "stdafx.h"#include "UnderLineTextButton.h"IMPLEMENT_DYNAMIC(CUnderLineTextButton, CButton)CUnderLineTextButton::CUnderLineTextButton(){ m_bgColor = RGB(13, 17, 23); m_fo...

2018-04-11 16:16:00 362

原创 封装两个按钮类,图片切换按钮,显示效果一样,实现不同

第一种实现#include "stdafx.h"#include "ToolBarButten.h"IMPLEMENT_DYNAMIC(CToolBarButten, CBitmapButton)CToolBarButten::CToolBarButten(){ m_bOver/*(鼠标位于按钮之上)*/ = FALSE; m_bSelected/*(按钮...

2018-04-11 15:59:00 375

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除