我试过在监视窗口手动输入变量pArrayDrawList[1].nCircleCenterX,
在代码区浮动窗口只能看到第一个变量pArrayDrawList[0].
怎样方便的查看其他,谢谢。
另外,我看到有网友写的代码,看不懂,复制再黏贴,将MYARRAY改成pArrayDrawList,报警。
CArray myArray;
int i;
// Allocate memory for at least 32 elements.
myArray.SetSize(32, 128);
// Add elements to the array.
CPoint* pPt = (CPoint*) myArray.GetData();
for (i=0;i < 32;i++,pPt++)
*pPt = CPoint(i, 2*i);
// Only keep first 5 elements and free extra (unused) bytes.
myArray.SetSize(5, 128);
myArray.FreeExtra();
#ifdef _DEBUG
afxDump.SetDepth( 1 );
afxDump << "myArray: " << &myArray << "\n";
#endif