Windows Template Library

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
Windows Template Library
Developer(s) Microsoft
Stable release
10.0.7336 / December 3, 2017; 18 months ago (2017-12-03)
Written in C++
Operating system Microsoft Windows
Type Library
License Common Public License, Microsoft Public License

Windows Template Library (WTL) is a free software, object-oriented C++ template library for Win32 development. WTL was created by Microsoft employee Nenad Stefanovic for internal use and later released as an unsupported add-on to Visual Studio and the Win32 Framework SDK. It was developed primarily as a light-weight alternative to the Microsoft Foundation Classes and builds upon Microsoft's ATL, another lightweight API widely used to create COM and ActiveX libraries.


WTL provides support for implementing various user interface elements, from frame and popup windows, to MDI, standard and common controls, common dialogs, property sheets and pages, GDI objects, and other common UI elements, such as scrollable windows, splitter windows, toolbars and command bars. WTL's main objective is to deliver small and efficient code, close in size and speed to "straight" SDK programs while providing a higher-level and more flexible object model to developers. Other classes such as a string wrapper that is syntax-compatible with MFC's CString and some templated collections are also included.

Most of the WTL API is a mirror of the standard Win32 calls, so the interface tends to be familiar to most Windows programmers. Although no official documentation from Microsoft exists, the WTL Documentation Project is attempting to create a comprehensive reference for the library.[1] The WTL is not supported by Microsoft Product Support Services.


While WTL is a template library and therefore code-based, the original license was similar to the one used for the Microsoft Foundation Class Library (MFC) source code, although it contained no usage or distribution restrictions. In 2004 Microsoft made the complete source code available under the Common Public License and released it through SourceForge. Since version 9.1, the library is licensed under the Microsoft Public License.[2]

See also


  1. ^ WTL documentation project
  2. ^ Download pages for WTL version 7.5, 8.0, 9.0, 9.1 and 10

External links

  • Windows Template Library on
  • Microsoft's download page for WTL 7.5
  • Microsoft's download page for WTL 8.0
  • WTL 8.1 (2011-11-21)
  • WTL Documentation - An Effort to Create Documentation for the WTL Programming Library.
  • "Using the Windows Template Library Part 1"
  • "Using the Windows Template Library Part 2"
  • "WTL for MFC Programmers" – A series of tutorials aimed at MFC programmers who want to start using WTL.
  • The WTL Wiki - A wiki dedicated to the Windows Template Library (WTL)

Retrieved from ""
This content was retrieved from Wikipedia :
This page is based on the copyrighted Wikipedia article "Windows Template Library"; it is used under the Creative Commons Attribution-ShareAlike 3.0 Unported License (CC-BY-SA). You may redistribute it, verbatim or modified, providing that you comply with the terms of the CC-BY-SA