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

xiaoxiao2021-02-28  112

//结构体如下图: 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"" };
转载请注明原文地址: https://www.6miu.com/read-62148.html

最新回复(0)