c++类成员中结构体的初始化

来源:互联网 发布:中国纺织品出口数据 编辑:程序博客网 时间:2024/06/03 12:54
//结构体如下图:
typedef struct _blockInfo_t{CPoint point;CString strCaption;}blockInfo_t;
//CXTPTimeTrackControlItem 类中声明:
static blockInfo_t m_blockInfo;
//XTPTimeTrackControlItem的CPP文件头部进行静态结构体的初始化

blockInfo_t CXTPTimeTrackControlItem::m_blockInfo = { CPoint(0, 0), L"" };
原创粉丝点击