本文整理汇总了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
);
}
示例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
);
}