Click here to Skip to main content
15,887,812 members
Everything / Desktop Programming / WTL

WTL

WTL

Great Reads

by Tim Smith
Color picker control for WTL applications including optional support for XP themes
by Ernest Laurentin
Full-fledged ATL Windowless ActiveX Container. Ideal for hosting Windows Media Player, Transparent Flash and Silverlight Animations.
by Michael Dunn
How to use power status notifications to make your applications conserve power when necessary.
by Michael Dunn
Create custom tasks in your app's jump list on Windows 7

Latest Articles

by Clifford Nelson
Shows how to set DataContext of View to itself using XAML and discusses the advantages of INotifyPropertyChanged to DependencyProperty
by Taehoon Kim 1004
Capture program using GDI
by Suarte
A hands on example of domain driven design - Part 3
by Timo Kunze
Use undocumented parts of the Windows Vista list view API to enhance your application.

All Articles

Sort by Title

WTL 

2 Nov 2010 by Daniel Ranger
Native C++ implementation of the .NET Asynchronous Design Pattern using Windows I/O Completion Ports
19 Jan 2003 by peterchen
Setting up doxygen, a free tool to document your code, in a few simple steps.
15 Jun 2003 by Mike Melnikov
Google-like Toolbar with customization from xml file and update from web features
4 Jul 2009 by Kannan Ramanathan
Is it possible to have a 32bit client initialize/invoke methods in a 64bit local COM server? If yes, how do I set up the Proxy/stub DLLs? The target OS I have in mind is Vista64 or Win7-64 (so the 32bit client will be running from with in WOW64)....
4 Jul 2009 by Kannan Ramanathan
One more req I have to worry abt: The 64bit local server should be able to implement connection points (32bit client being the sink)...is this possible? Thanks.
21 Jul 2013 by mxz_qljs
I have not find samples about print in wtl, who can help me? Mainly use atlprint.h to print, maybe multipage, and show the preview print window. Please code a demo, thanks.[This is a repost of another wanna-be-question which was probably automatically removed due to abuse reports (not a...
23 Jul 2013 by KarstenK
look at this WTL for MFC Programmers, Part IX - GDI Classes, Common Dialogs, and Utility Classes[^]For a preview print in a menory DC and bitblt to an window in onpaint.
11 Dec 2006 by Shunix
This article is intended to show an opportunity for customizing the list view control (report view, single-line mode) using the custom scrollbar control.
11 Jul 2011 by Ed Gadziemski
CWtlPicture attaches to an owner-drawn picture control and reads, displays, and saves disk or database images
20 May 2007 by Michael Dunn
Busted features? APIs failing? Use this guide to get your IE plugin up and running again in protected mode!
9 Mar 2000 by Sandu Turcan
A library that provides the easiest way to get loosely coupled components.
11 Mar 2008 by xueming.yan
A fast and lightweight cell control for displaying tabular data. The cell is a custom control derived from ATL::CWindow.
21 Jan 2002 by Voinkov
A policy based implementation of UI updating that accumulates and executes UI changes.
6 Oct 2003 by Ilya Solnyshkin
A Static control with a gradient
6 Dec 2001 by Michael Dunn
This article demonstrates redirecting output of a child process, and displaying a web browser UI using DHTML.
6 Oct 2005 by Jozef Bozek
A CGuid class for manipulating the GUID structure.
22 Aug 2004 by fftz
The CMDIBase template provides multiple view UI support for WinCE WTL-based projects.
12 May 2007 by Satervalley
This small tool shows some real-time system information, such as network speed, CPU utilization, time period and so on on the screen .
10 Mar 2002 by Paul A. Howes
An article detailing a simple memory-based device context for the WTL, to be used when flicker-free double-buffered drawing is desired
6 Sep 2000 by Milan Gardian
Notes on updating your WTL installation
13 Dec 2004 by Alain Rist
Some proposed WTL classes and functions at work: CAppWindow, CFullScreenFrame, CStdDialog, CF_DIB clipboard support, and more...
11 Feb 2008 by João Paulo Figueira
Capture your Windows Mobile device screen via ActiveSync or WMDC.
22 Dec 2001 by David Y. Zhao
This is a simple tabbed MDI for WTL
1 Jul 2003 by Junlei Li
Use an easy-to-use templated class to custom the title bar of windows.
23 May 2003 by Tony Ioanides
An alternative approach to selecting date ranges.
6 Jul 2008 by jangtimjang
A ready-to-use wrapper class for creating a shortcut (.lnk file) and a bookmark (.url file) and finally attaching an online icon resource to it.
1 Oct 2001 by Zilin
A class to develop OpenGL programs which can be easily plugged into your WTL programs
31 Aug 2001 by Paul A. Howes
A WTL adaptation of James Twine's Dim Edit control.
10 Jan 2006 by Jozef Bozek
Implemetation of a simple DocView framework like MFC.
27 Apr 2002 by Paul M Watt
A message loop class that is suitable for game programming in WTL.
22 Jan 2002 by Noel Frankinet
21 Jun 2009 by _oti
A WTL Hunspell-checked edit control.
21 Jun 2002 by Stephen Jones
This article describes a tab control that automates the management of tab windows.
12 Sep 2002 by Derick Cyril Thomas
A WTL Implementation of XP Button and Edit Box
23 Aug 2000 by Ramon Smits
A font combo box that previews the fonts in the dropdown view
23 Mar 2006 by Rory Buchanan
An article on using accelerators in WTL dialogs.
12 Apr 2004 by Lonnie McCullough
A set of macros and classes that allow declarative access to registry settings.
6 Oct 2006 by Michael C. Robert
Demonstrates how to use WTL and C++ to access an Excel spreadsheet using Visual Studio .NET 2003.
11 Sep 2003 by Zhang YanFeng
This article will show you how to make MDI window of WTL into ATL control by using a real world example.
2 Nov 2004 by Alain Rist
CZoomScrollImpl extends WTL CScrollImpl to allow continuous zooming.
30 Sep 2002 by Ernest Laurentin
Shows how to use Microsoft Script Hosting inside existing ATL/WTL Application
26 Aug 2013 by findewayz
Hi all, I'm using WTL and COM, I tried to implement refreshing my webpage after reconnect to the internet. I have a thread monitering the net status who will call SendMessage to notify main thread to reload the webpage using Navigate2. Unfortunately,I ran into an odd occurrence.After...
13 Jun 2008 by Noel Frankinet
A virtual WTL ListView control on an SQLite3 table or view.
3 Feb 2002 by Michael Dunn
An advanced utility that scans computers for missing hotfixes, and helps you download and install them.
5 Jun 2003 by Tony Ioanides
An MS Outlook-style mini-calendar control using WTL
5 Jun 2008 by João Paulo Figueira
How to animate child view transitions on a Windows Mobile WTL application.
1 Jun 2003 by Bjornar Henden
A WTL Grid mostly aimed for use against databases.
8 Feb 2009 by Member 3375334
Hello everyone,i am new to MFC and VC++ programming in general. What i am trying to do right now is write a program that will allow me to draw lines based on a Gupta-Sproull midpoint algorithm. There is Bresenham algorithm but it's different. I...
8 Feb 2009 by Stuart Dootson
I'd just draw on a plain dialog surface. Create a dialog-based MFC application. Draw your lines and things in the dialog's OnPaint handler. Add button click handlers for the dialog.
19 Oct 2009 by ocoudert
There are striking lessons in failed software architectures, and it all starts with API design. I am sharing here my practical experience with C++ projects, but most of these advices also apply to Java.
31 Mar 2005 by xryl669
The final article about API hooking, with a working example of a thread deadlock detector.
28 Jan 2011 by anonymous1310
Hi, I have an application whose icon is appearing in tray and in the title bar but when i press alt+tab the icon of the application is not appearing,there is a blank page icon is coming in place of my icon . Please help me.thank you.
29 Jan 2011 by User 7429338
The title bar and system tray use the 16x16 icon, the alt-tab window uses a 32x32 icon.Does your icon file contain a 32x32 icon?
3 Feb 2011 by DEGROUX
Comment out this line in the PreCreateWindow of your CFrameWnd derived class //cs.lpszClass = AfxRegisterWndClass(0);Michel Degroux
8 Feb 2015 by tkontos
A WTL based, XML driven shortcut replacement
14 Jan 2004 by Igor Vigdorchik
A port of MFC CArchive class to simplify serialization in WTL and non-MFC projects
23 May 2002 by Eugene Polonsky
Complete implementation of .NET IDE's snapping windows in ATL/WTL
5 Mar 2009 by Ernest Laurentin
Full-fledged ATL Windowless ActiveX Container. Ideal for hosting Windows Media Player, Transparent Flash and Silverlight Animations.
24 Feb 2006 by lyshsd
ATL/WTL version of Samuel Gonzalo's CPath1.2
17 Aug 2003 by NormDroid
Implementation of Auto Completion ComboBox for WTL
27 Feb 2004 by c-smile
Auto Value is an implementation of variables having undefined state
14 Oct 2004 by Pavel Martyanov
COM object for easy user input in multiline edit boxes
19 Jan 2006 by Till Krullmann
A WTL extension which introduces layout maps to automatically update the layout in resizable dialogs.
16 Jul 2006 by xanatos
AutoSizeDlg - an autoresizing class for ATL/WTL
2 Jun 2004 by Igor Vigdorchik
Simple implementation of a bargraph control for graph plotting
7 Jan 2009 by CPallini
I suppose it depends on color depth... See BITMAP struct definition [^], the bmBitsPixel member looks promising. If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. ...
4 Dec 2009 by Emilio Garavaglia
In the most of the cases, if you're running more than 256 colors, it will be 32 bits (one processor word, even if the color itself is represented by 3 bytes of the four). Otherwise, for 256 colors, 1 byte;and for 16 colors 1 bit of four different bytes (one per color plane, also named RGBI)
4 Dec 2005 by mb2sync
Performs conversions between values of type bool, BOOL and VARIANT_BOOL.
2 Sep 2005 by mb2sync
Consistent interfaces to CString using Boost.Range.
25 Feb 2010 by micahs
What is the factory design pattern? Well to begin with, it is something that is referenced frequently in software architecture. Functionally, a factory builds an object. More specifically, factories render instances of an abstract class type.
17 Mar 2009 by T800G
Create unique preprocessor macros to prevent multiple header inclusion.
19 Apr 2012 by mrbll
I have a library function (that does not know anything about the application its linked to) that sometimes opens a window.If the application's main window is closed while the library window is open, the process gets into a weird state that wont exit, even after the library function widow is...
18 Apr 2012 by nv3
You can use the system call EnumWindows to find all of your top-level windows. After your application has closed all its own windows, no other window should remain. If EnumWindows detects anything, then it's probably the additional window that your function has created.If you know the window...
18 Apr 2012 by Albert Holguin
You should be able to call AfxGetMainWnd() from the exported function and get the top-level window from the thread calling the exported function (may return NULL if there's no window associated with the thread).See...
2 Aug 2012 by v3nOm_
In order to further explore ODBC and increase my programming experience i was going to put together my own ODBC wrapper classes. Below are the wrapper classes i have made so far and i'm curious on any problems anyone happens to see with it :) thanks for the help and cheerstemplate
5 Aug 2012 by armagedescu
As suggestions. If you return bool then you have to return false/true instead of FALSE/TRUE, because you are not using BOOL. Second, don't name the class Handle. Instead of CConnectionHandle use CConnection name, or even better CDatabase. Instead ir CStatementHandle use CStatement or CQuery, and...
3 Aug 2012 by v3nOm_
I do appreciate your feedback and understand I am missing a lot :) I think it's better to get advice early then to late and have a lot of rewriting :) thanks for the advice and your time
3 Aug 2012 by JackDingler
My advice is to test the code yourself first, to see if it solves the problem you are addressing.I've had little need in the last decade, to do much with the ODBC layer. Using Wizard generated code such as MFC generated classes based on CRecordset, save a lot of time, and perform well enough...
6 Jan 2003 by anandaji
This article shows how we can use caching while performing insert, edit and update functions in the DataGrid.
13 Aug 2009 by sashoalm
I'm automating Word and when I call a function that doesn't return for a long time (for example a call to app.Run(_T("FilePrint"));) it tends to freeze the UI of my app until it returns from the call, so I tried to run this code from a worker...
13 Aug 2009 by Stuart Dootson
Could you do all of the automation, including creation of the Word object, on the worker thread?Basically you're running foul of COM single-threaded apartments and things, I think. This article[^] explains them well. Java, Basic, who cares - it's...
3 Aug 2010 by Jörgen Sigvardsson
You need to marshal calls across threads/apartments. See this[^] article for different ways to perform cross thread marshalling. CoMarshalInterThreadInterfaceInStream() would probably be the easiest approach. Look it up in the MSDN documentation. It's quite easy to use.
16 Jan 2014 by Singh, Yashpal
Hi,I design a custom TreeView control that wraps the text string of a tree item when the tree is resized, and to achieve that I draw the tree items in OnPaint() handler, I use CDC::DrawText() to draw the text strings and CDC::FillRect() on the same rectangle to draw a selected tree item. In...
16 Jan 2014 by Richard MacCutchan
See the remarks section under CDC::Rectangle[^], particularly The interior of the rectangle is filled using the current brush.. So you need to add the text as the very last action.
5 Sep 2008 by Ben Burnett
I was wondering if anyone knew of a straight forward way of calling (non-exported) functions in an executable from a DLL. We are building a, for lack of a better name, private plug-in system that will grant the plug-in access to all of a...
5 Sep 2008 by Garth J Lancaster
oohhh .. thats a hard one. Unless your executable exposes some sort of API I think you'd have to resort to using injection/hooking from the dll (which I presume is in another process) to access the functions in the executable, even then ......
29 Dec 2010 by mbue
Use COM and you have to export only one function like DllGetClassObject to connect to all your interfaces.
16 Oct 2009 by hanlei0000000009
I need my program to sleep 1 microsecond, but Sleep() can not do this. So, can I use select() instead of Sleep() to do this? timeout.tv_sec=0;timeout.tv_usec=1;FD_ZERO(&readfd);ret=select(0,&readfd,NULL,NULL,&timeout);Does the above approach have any problems?
17 Oct 2009 by Rajesh R Subramanian
hanlei0000000009 wrote:I need my program sleep 1 microsecond, but Sleep() can not do this.Neither can any other API do this (under Windows). Windows was never designed to provide this kind of functionality (it is not a real-time OS). If you use something like Sleep(2), your program may sleep for 2 m
16 Oct 2009 by Stuart Dootson
Yeah, that's not happening...Why 1 microsecond, FFS? What are you trying to do? Because there may well be a better way.
19 Dec 2011 by Prashant Srivastava LKO
HiSystem.Thre...
19 Dec 2011 by Chuck O'Toole
Just because the API definition of select() takes its timeout value in microseconds, that doesn't mean that every operating system that supports the Socket API has to provide microsecond resultion on their timers. In fact, almost no operating system does.As Rajesh said, Windows (Unix,...
11 Apr 2011 by naaryan
Hi,I have been using Visual studio .Net 2003 with WTL library,But now i need to port our running code to Visual studio 2008 with WTL library.I am getting compiler error "error C2065: 'IID_IImageList' : undeclared identifier" on Visual studio 2008 but the same code running fine on Visual...
11 Apr 2011 by Debojyoti Majumder
In your project settings, check your "Additional Dependency".I guess you are missing some .lib files there ( refer to old project settings.)
19 Dec 2008 by josip cagalj
Hi to all. I'm trying to open some project wroted using WTL. When I try to rebuild it (using VS2008 on Win XP) I get the compile error as above. Now, "atlres.h" file is in directory which I added to my project settings properly and I don't know...
19 Dec 2008 by Stuart Dootson
I think you need to add the WTL include directory to the include directory path for the resource compiler. Right-click on the project, select 'Properties', select Resources->General in the properties window and add the WTL include directory to...
7 Sep 2011 by Arun Parthasarathy
Plesase go to the Tools->Options menu.Options dialog opens.Choose projects and solutions.Choose VC++ directories.In "show directories for : ", choose "Include Files".Here add the directory path where your file exits.and give ok.Now try to build your project.
14 Sep 2005 by Neil Yao
A reusable WTL base class to support AppBar