atl里面定义的构造函数居然没有默认赋值为空,找了半天的bug,居然被随机数玩了。
atltypes.inl
// CRect
ATLTYPES_INLINE CRect::CRect() throw()
{ /* random filled */ }
最可气的是,默认找到的定义居然到了wtl里面
atlmisc.h
class CRect : public RECT
{
public:
// Constructors
CRect()
{
left = 0;
top = 0;
right = 0;
bottom = 0;
}