Introduction to WTL - Part 1

What is the Windows Template Library you ask?

Brief history

In the beginning when ATL appeared, developers were happy. We had a way to   write fast, small COM components. Well the happiness ended soon after when we   found that we had to write code wrappers for any of the window's controls we   wanted to use. So MS responded to our plight and gave us WTL, completely unfinished   and unsupported (for now).

See WTL Documented for more information. 

Features

  • All the power of C++
  • Thin wrappers for the common controls
  • A small but functional Application framework (minus the ever-popular Document-View     Architecture)
  • Print and Print Preview support
  • Ports of MFC’s CPoint, CRect, CSize, CString, etc.
  • New Message cracking Macros, conceivably they’re an upgrade of the existing ones.

All this but no documentation! Oh well, we're all professionals and can read code, so for  now that will have to suffice.

Where do you get it?

Thanks to Nenad Stefanovic of the WTL development team we now have 2 methods   of downloading the WTL source file (Special thanks to Shannon McCoy for pointing   this out).

Method 1

Click   here to download the WTL source files.

Method 2

Go and get the Platform   SDKs.

WTL resides in the Platform SDKs. To find and install WTL you need to download   the latest release of the Platform SDKs. In the screen seen below, Expand the   Source code tree item and select the Windows Template Library for download.

So, you have the SDKs installed, your ready to go... well almost. Don’t forget   to add the WTL include path to Developer Studio. To do that in Developer Studio   go to Tools | Options and click on the 'Directories' tab. Once you are there   simply add the include path to the 'Include files' list.

What’s in the box?

Let’s take a look at the goodies we got. The WTL is setup so that all the code   resides in header files; it's setup this way so that we have full control of   what is been tacked into your project.

The Headers

 

File nameDescription
  
atlapp.hMessage loop, interfaces, general app stuff
atlcrack.hMessage cracker macros atlctrls.h Standard and common control       classes
atlctrlw.hCommand bar class atlctrlx.h Bitmap button, check list view,       and other controls
atlddx.hData exchange for dialogs and windows
atldlgs.hCommon dialog classes, property sheet and page classes
atlframe.hFrame window classes, MDI, update UI classes
atlgdi.h

DC classes, GDI object classes

atlmisc.h

ATL ports of CPoint, CRect, CSize, CString, etc.

atlprint.h

Printing and print preview

atlres.hStandard resource Ids
atlscrl.hScrollable windows
atlsplit.hSplitter windows
atluser.hMenu class

The Samples

 

DirectoryDescription
  
MTPad

Multithreaded notepad sample

MDIDocVw

ATL version of the MDI sample

GuidGen

ATL version of the GuidGen sample

The App-Wizard

 

File NameDescription
  
AtlApp60.AwxATL/WTL AppWizard

And of course there is a 'readme.txt', which outlines the class hierarchy of   the WTL. Sorry, I said there was no documentation, my bad :)

Thats it! You got the WTL and your ready to go.

 

转自:http://www.codeproject.com/Articles/498/Introduction-to-WTL-Part-1

1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 4、下载使用后,可先查看rEADME.md或论文文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。 5、资源来自互联网采集,如有侵权,私聊博主删除。 6、可私信博主看论文后选择购买源代码。 1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 4、下载使用后,可先查看rEADME.md或论文文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。 5、资源来自互联网采集,如有侵权,私聊博主删除。 6、可私信博主看论文后选择购买源代码。 1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 4、下载使用后,可先查看README.md或论文文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。 5、资源来自互联网采集,如有侵权,私聊博主删除。 6、可私信博主看论文后选择购买源代码。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值