以前ATL对界面支持的比较少,但是随着vs2003,atl7.1支持了很多界面类。
我看了一下,似乎都支持了,那么现在还有必要用wtl吗?请比较熟悉新版本的atl和wtl的老大详细解答!!!!

解决方案 »

  1.   

    ATL Library Reference   Windows Support ClassesSee Also
    ATL Class Overview | Message Map Macros | Window Class Macros
    The following classes provide support for windows: _U_MENUorID   Provides wrappers for CreateWindow and CreateWindowEx. 
    CWindow   Contains methods for manipulating a window. CWindow is the base class for CWindowImpl, CDialogImpl, and CContainedWindow. 
    CWindowImpl   Implements a window based on a new window class. Also allows you to subclass or superclass the window. 
    CDialogImpl   Implements a dialog box. 
    CAxDialogImpl   Implements a dialog box (modal or modeless) that hosts ActiveX controls. 
    CSimpleDialog   Implements a dialog box (modal or modeless) with basic functionality. 
    CAxWindow   Manipulates a window that hosts an ActiveX control. 
    CAxWindow2T   Provides methods for manipulating a window that hosts an ActiveX control and also has support for hosting licensed ActiveX controls. 
    CContainedWindowT   Implements a window contained within another object. 
    CWndClassInfo   Manages the information of a new window class. 
    CDynamicChain   Supports dynamic chaining of message maps. 
    CMessageMap   Allows an object to expose its message maps to other objects. 
    CWinTraits   Provides a simple method of standardizing the traits of an ATL window object. 
    CWinTraitsOR   Provides default values for window styles and extended styles used to create a window. These values are added, using the logical-OR operator, to values provided during the creation of a window. 
    Related ArticlesATL Window ClassesATL Tutorial
      

  2.   

    ATL 的窗口类就是WTL,你说需要WTL吗?WTL本身就是ATL的窗口类。ATL支持更多界面的直接原因就是WTL扩充了,没有WTL,哪来ATL界面类
      

  3.   

    可是我在新版本的ATL里面看到了很多界面类。都是WTL中实现了。
    但是在名空间ATL中,我觉得可能是MS觉得ATL支持界面太少了,所以加了这些界面库!能这么理解吗?
    如果这样的话,WTL将没有意义了!!!
      

  4.   

    我没看过新版的ATL 不知道。你管它呢,它用WTL你就用WTL呗,它用ATL你就用ATL呗,反正代码一样,方法一样,对你又没损失
      

  5.   

    不好意思,我对ATL和WTL了解不够深刻。
    据我观察代码所得,发现:
    首先WTL是构建于ATL基础上的,
    其次WTL仅仅是实现了一些界面功能。这样在ATL中实现界面就可以用WTL,是这个样子吗???
      

  6.   

    WTL在界面方面比 atl 丰富的多。
    不过wtl控件太少,实际使用当中很不方便,自己都开发又不太现实。