当前位置: 首页>>代码示例>>C++>>正文


C++ intarray::GetLength方法代码示例

本文整理汇总了C++中intarray::GetLength方法的典型用法代码示例。如果您正苦于以下问题:C++ intarray::GetLength方法的具体用法?C++ intarray::GetLength怎么用?C++ intarray::GetLength使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在intarray的用法示例。


在下文中一共展示了intarray::GetLength方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: InitJoin

void C_BranchProperties::InitJoin()
{
	static intarray chk;
	static intarray unchk;
	static intarray greyed;
	static stringarray tips;
	static intarray values;

	if (0 == tips.GetLength()) {

		tips.ReDim(3);
		chk.ReDim(3);
		unchk.ReDim(3);
		greyed.ReDim(3);
		values.ReDim(3);

		*tips[0] = _T("The branch is drawn with a rounded join");
		*tips[1] = _T("The branch is drawn with a bevelled join");
		*tips[2] = _T("The branch is drawn with a mitred join");

		*values[0] = eJoinRound;
		*values[1] = eJoinBevel;
		*values[2] = eJoinMitre;

		for (int n = 0; n < chk.GetLength(); n++) {

			*chk[n] = reinterpret_cast<int>(s_hJoinSel[n]->GetHandle());
			*unchk[n] = reinterpret_cast<int>(s_hJoinUnsel[n]->GetHandle());
			*greyed[n] = reinterpret_cast<int>(s_hJoinGrey[n]->GetHandle());
		}
	}

	m_penJoin.Init(
			eMetafile,
			String(_T("Pen Join")),
			unchk,
			chk,
			greyed,
			tips,
			values
		);
}
开发者ID:ElliottBignell,项目名称:HeadCase,代码行数:42,代码来源:BranchProperties.cpp

示例2: InitEnds

void C_BranchProperties::InitEnds()
{
	static intarray chk;
	static intarray unchk;
	static intarray greyed;
	static stringarray tips;
	static intarray values;

	if (0 == tips.GetLength()) {

		tips.ReDim(3);
		chk.ReDim(3);
		unchk.ReDim(3);
		greyed.ReDim(3);
		values.ReDim(3);

		*tips[0] = _T("The branch is drawn with a rounded end");
		*tips[1] = _T("The branch is drawn with a square end");
		*tips[2] = _T("The branch is drawn with a flat end");

		*values[0] = eEndRound;
		*values[1] = eEndSquare;
		*values[2] = eEndFlat;

		for (int n = 0; n < chk.GetLength(); n++) {

			*chk[n] = reinterpret_cast<int>(s_hEndSel[n]->GetHandle());
			*unchk[n] = reinterpret_cast<int>(s_hEndUnsel[n]->GetHandle());
			*greyed[n] = reinterpret_cast<int>(s_hEndGrey[n]->GetHandle());
		}
	}

	m_penEnd.Init(
			eMetafile,
			String(_T("Pen End")),
			unchk,
			chk,
			greyed,
			tips,
			values
		);
}
开发者ID:ElliottBignell,项目名称:HeadCase,代码行数:42,代码来源:BranchProperties.cpp


注:本文中的intarray::GetLength方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。