WTL 中的常见问题汇总

1.CRect,CPoint,CSize的使用

WTL提供了CString,CRect,CPoint和CSize,可能后来版本的ATL也提供了,
WTL作者推荐使用ATL的实现,所以:
#include <atlstr.h> // CString
#include <atltypes.h> // CRect,CPoint,CSize
注意,这两行必须放在
#include <atlbase.h>的上面,
然后,这个放最后好了:
#define _WTL_NO_WTYPES
#define _WTL_NO_CSTRING
#include <atlmisc.h>

原文地址:https://www.cnblogs.com/syru/p/3289527.html