VS.NET2003 可以自动列出一个类的成员函数,但有时候不行, 这个可能是Microsoft的bug了.
解决办法是删除*.suo 文件,再重新打开工程即可.
另外,发现如下一个有趣的现象:
Graphics g(hdc);
GraphicsPath path;
Point pts[] = {Point(0, 0), Point(2, 2), Point(3, 3), Point(0, 5)};
path.AddLines(pts, 4);
INT num = path.GetPointCount();
BYTE* pTypes = new BYTE[num];
path.GetPathTypes(pTypes, num);
在Point pts[] 定义前, g可以自动列出成员函数,在其之后则不行.