Click here to Skip to main content
15,887,683 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 Updated

WTL 

10 Jan 2011 by #realJSOP
Have you tried google ("wtl propertysheet")? The first link (after a reference to your question here) is this CodeProject article:WTL for MFC Programmers, Part VIII - Property Sheets and Wizards[^]
17 Feb 2002 by <b>T</b>om <b>C</b>ollins
Shows how to develop ATL-Objects to extend VB-Script. Uses ISharedPropertyGroupManager to keep data in memory. Supervises MSDEV-shutdown.
3 Apr 2009 by _8086
union u{ char ch[2]; int i;};int main(){ union u x={0,2}; cout
21 Jun 2009 by _oti
A WTL Hunspell-checked edit control.
26 Jun 2003 by abc876
This article explains how you can can send anonymous net send messages to any host
14 Aug 2012 by Abhinav S
The listview has a multiselect property that you can turn on - http://msdn.microsoft.com/en-us/library/system.windows.forms.listview.multiselect.aspx[^].
17 Sep 2012 by Adam Wojnar
A complete log viewer written in C++/WTL.
27 May 2010 by Aescleal
If you're programming in C, then:strncpy( q, p, 499 );q[499] = '\0';will do the trick and work however long the string is. If you'd like to obfuscate things a bit more then you can combine the two lines into one by exploiting the return value of strncpy:strncpy( q, p, 499 )[ 499 ]...
16 Oct 2010 by Aescleal
If you're using C++ there's no reason to use printf or the whole god awful family of C relics. Use a stream. Then you get type safety and you won't try reading return addresses off the stack to interpret as strings. Consider rewriting along the lines of:int main(){ int d = 20; ...
2 Jun 2009 by agetina
I can read the prototypes for windows.h in the include folder (I have installed dev c++) but i want a list of explained functions. I don't know for what to use each of them.Thank you! modified on Wednesday, June 3, 2009 4:29 AM
15 Nov 2006 by Agha khan
A screen capture application.
16 Aug 2009 by Ahmed Charfeddine
?Thanks. Easy Profiler : a compile-time profiler for C++www.potatosoftware.commodified on Sunday, August 16, 2009 5:41 PM
9 Jan 2010 by Ajay Vijayvargiya
Since Windows Vista supports "India' English", and has the following definition:0x4009 India (IN) 0x10 SUBLANG_ENGLISH_INDIA Visual Studio takes this as the project's language.While creating new project, one should select 'English (US)' as 'Resource Language' in Project Wizard.
16 Oct 2010 by Ajay Vijayvargiya
Perform Code Analysis with your code with /analyze switch with your Visual C++ compiler. You need to have Team System or the Ultimate version to do that.
9 Nov 2003 by Alain Rist
Add this small class to your existing dialog inheritance list and get nice tooltips on controls and dialog.
2 Nov 2004 by Alain Rist
CZoomScrollImpl extends WTL CScrollImpl to allow continuous zooming.
13 Dec 2004 by Alain Rist
Some proposed WTL classes and functions at work: CAppWindow, CFullScreenFrame, CStdDialog, CF_DIB clipboard support, and more...
28 Sep 2006 by Alain Rist
Plug-in CodeProject's CStdString as WTL::CString and get the WTL CString support with a Standard C++ Library implementation.
11 Nov 2007 by Alain Rist
Featuring cell menu, in-place editor, single control and split dialogs, Vista shell and Mobile file controls and selection dialogs
18 Feb 2009 by Alain Rist
OOo::DocWindow and WTL::COOoCtrl classes to work on any Microsoft-Office document, and Open Office SDK integration in Visual Studio/VCExpress 2005/2008
29 Jul 2009 by Alain Rist
Message map macros, split frames, full screen implementation, and automatic mapping of UI elements.
2 Apr 2010 by Alain Rist
See the doc for PropertySheet Function[^], and notice:For modal property sheets, the return value is as follows: >=1 Changes were saved by the user. 0 No changes were saved by the user. -1 An error occurred To retrieve extended error information, call GetLastError.cheers,AR
4 Sep 2010 by Alain Rist
Hi,This bug in WTL 8.0 (Memory for dialog template is allocated using GMEM_FIXED flag and re-allocated without GMEM_MOVEABLE flag)[^] is fixed in the current (beta) WTL 8.1 files.If you want to stay on 8.0 you can download the fixed atldlgs.h at...
28 May 2011 by Alain Rist
Hi,The simplest way to achieve your goal is to add a tab or some spaces at the end of your shortest menu item.Otherwise you can use an Owner-Drawn menu item; the menu owner window should derive from WTL::COwnerDraw. The WTL::CMenuT and WTL::CMenuItemInfo classes in atluser.h can help...
12 Apr 2010 by Alain Rist
Including a Ribbon UI Implementation Guide with examples and a dual UI enabled legacy application
18 Apr 2006 by AlanW
A flexible WTL list control that supports Windows Vista style selection and cell editing.
9 Apr 2006 by AlanW
A WTL tree control that supports Windows Vista style selection and multiple selection
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...
29 Jun 2010 by aleksey_m_t
MSVS Add-in for Doxygen documentation system
20 Oct 2005 by Alexander D. Alexeev
An article on how to make resizable dialogs with WTL.
21 Aug 2006 by Alexander D. Alexeev
This article describes the way to add restarting support to your Win32 applications.
25 Jan 2001 by Alexander Fedorov
Impementation of message reflection for WTL wrappers for Windows Controls
18 Nov 2007 by Alexander Uckun
The WTL way of adding number support to your controls.
13 May 2002 by Alweit
WTL 7.0 CMDICommandBarCtr small fixes
21 Sep 2005 by Alweit
An attempt to create a WinZip-like Extract dialog.
21 Mar 2016 by ameyakoshti
Hello I am doing computer engineering and i needed some guidanceregarding my project.1st of all i want to know whether it is possible to disable usb portsand CD rom "POWER" through VC++.If yes then could you please guide me on it?Thanks
6 Jan 2003 by anandaji
This article shows how we can use caching while performing insert, edit and update functions in the DataGrid.
5 Aug 2010 by Andre Vianna
Some techniques to code each part of the sentence with some samples.
5 Aug 2010 by Andre Vianna
History, the basic concepts of Fluent Interfaces and a small glossary of terms that I will use in this series of posts
20 Feb 2003 by Andreas Saurwein
Simple tool to test applications under various memory conditions.
20 Feb 2009 by Andrew McAuley
Hi there,I'm new to C++ and i've got a basic project i've made up, just to play around with templates. It consists of the following classes: - enumerable (used much like IEnumerable in .NEt Framework code) - list [inherits from enumerable]...
3 Mar 2008 by Andrew Tyapuhin
WTL control for showing full color and grayed pictures with resizing and saving resultant files
22 Dec 2008 by Anem Mahesh
Open your resource script file, and delete this part from it://///////////////////////////////////////////////////////////////////////////// English (U.S.) (unknown sub-lang: 0x10) resources#if !defined(AFX_RESOURCE_DLL) ||...
18 Dec 2009 by Anirudh Kishan
Just imagine how your arguments would be passed.If it is passed as 1.2 and 2.2 to the (int,int) function then it would to truncated to 1 and 2.If it is passed as 1.2 and 2.2 to the (float,float) it will be processed as is.So here is where the ambiguity creeps in.I have found two...
19 May 2011 by ankitjoshi24
I found a way to disable the CD ROM using regedit. Now I am not sure how you can use it in VC++ but you can atleast havea look at the way of disabling it through regeditTo Disable CD-RomHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CDRomDouble Click on AutoRun and change the value...
5 Aug 2012 by Anna-Jayne Metcalfe
Theme support in Visual Studio 2012
18 Feb 2010 by annarao
class a{public void dis(){System.out.println("no argument");}public void dis(int i){System.out.println("one argument");}public void dis(int i,int j){System.out.println("two argument");}class maindemo{public static void main(String aggs[]){a=obj=new...
19 Jan 2011 by anonymous1310
Hi, I have a dialog based application in which when i move cursor over one widget a description about that is shown by me but when i move the cursor from that widget quickly outside the window the description just get stuck ,means that the OnMouseMove() function does not get called,I tried...
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 Jun 2011 by anonymous1310
Hi. I have a dynamic URL (e.g. http://www.xyz.com/a?bcdefghijk) that redirects to a specific image file (http://www.xyz.com/images/1.gif ORhttp://www.xyz.com/images/2.gif) under certain circumstances. Doesanyone have any ideas how I can get that final image filename ?Thanks in advance.
27 May 2010 by Anu Koshy
strcpy(q,p); works fine.but if(strlen(p)>500)then strncpy(q, p, 499);q[500-1] = '\0';q has to be terminated with '\0'
31 May 2010 by Anu Koshy
if it is a text control, set "No Prefix" as True.That should solve the problem. :)
27 Jan 2009 by arad.moradi
i don't know what is the reason of of error.i write it with c++ & i send what is it about.it is the code:#include #include #include using namespace std;class cart{public: cart(char a[2]="paq"){ cout
9 Jul 2012 by armagedescu
First you need to open the right theme from the current skin:hThm = OpenThemeData(hWnd, L"WINDOW");After that you may draw the needed thing with DrawThemeBackground,DrawThemeBackground( hThm, hDC, WP_CAPTION, CS_ACTIVE, &rc, 0 );
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...
17 Feb 2002 by Armando Pajuelo
An App-Wizard which creates template WTL apps.
21 Apr 2004 by Armen Hakobyan
Using SQL-DMO to shrink SQL Server transaction logs.
27 May 2005 by Armen Hakobyan
Media Player plug-in turning computer off when media ends
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.
21 Jan 2010 by Avi Berger
I'm going to try to synthesis three other answers which each have an important point.There are situations where seemingly useless parenthesis are necessary for correctness in a macro definition. («_Superman_») In the cases that you have highlighted, however, they have no significant impact...
1 Aug 2009 by Bacon Ultimate Cheeseburger
Simply make a call to GetObjectType().
13 Aug 2009 by Baltoro
You definitely need to have a Window Proc to recieve your message, because it is associated specifically with a registered Windows class. The documentation over at MSDN should show you how. See this: Windows Procedures Overview[^]You can also...
21 May 2011 by barneyman
wouldn't you go the other way?class CTransparentBtn : public CMenuButtonImpl{// ...};
21 May 2011 by barneyman
you're still going to have to template your CTransparentBtn if you go the other waytemplate class CTransparentBtn : public CWindowImplthentemplate class ATL_NO_VTABLE...
21 May 2011 by bartello
Hi allI have a button class :class CTransparentBtn : virtual public CWindowImpl{// ...};and I've found this class for menu button from codeproject.comnamespace WTLEX{template class ATL_NO_VTABLE CMenuButtonImpl :...
25 May 2011 by bartello
Hi all!I have a button, clicking on which displays the popup WTL::CMenu.The width of menu is automatically changed based on the width of the longest menu item. But if the largest item's (in menu drop-down list) width is smaller than button's width the menu looks ugly.So I'd like...
13 Jan 2006 by Baryon Lee
This article explains the procedure for using WTL with Visual Studio 2005 Express edition.
1 Jun 2000 by Ben Burnett
Beginning Documentation on WTL
26 Jul 2000 by Ben Burnett
An article on extending the tool bar control using the Window Template Library
30 Apr 2001 by Ben Burnett
The 'what' and 'where do I get it' of WTL
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...
30 Nov 2000 by Billy Leverington
How to use WTL to create custom controls
25 Aug 2009 by birajendu
Hi, I want to write some code which will double-click a desktop shortcut. Or the alternate way is, how can I run a desktop shurtcut using Createprocess() API. Which EXE is responsible to launch Start->Run window? Thanks in advance.
4 Mar 2002 by Bjoern Graf
A WTL Rolldown control as seen in 3DSMax
5 Dec 2001 by Bjoern Graf
A WTL CCommandBarCtrl extension to fully support MDI
1 Jun 2003 by Bjornar Henden
A WTL Grid mostly aimed for use against databases.
12 Mar 2007 by bkausbk
Make Property Sheet/Wizards resizable without much modification.
15 Jul 2008 by Blade_Bao
Hi there!I'm a graduated students majored in Pattern Recognition and I've beenworking on this GetRenderHwnd for a few days, I was just wonderingthat can i or can i not use this to save color images from GE or storeit in a matrix or something like...
1 May 2006 by Blake Hurd
A sidebar in the lower left that emulates the sidebar in Outlook 2003. Other features implemented include theming, snapping buttons, unique button system, etc.
4 Aug 2010 by bleedingfingers
To add to what others said, try this with and without the printf(...) within the ChangeData(...)void ChangeData(int **p){ int g = 100; *p = &g; printf("changed to %d\n", **p);}void main(){ int *q; ChangeData(&q); printf("changed to %d\n",...
13 Jul 2003 by Brian P. Adams
A WTL wizard for Visual Studio .NET 2003
10 Oct 2003 by c-smile
WTL integration of Lightweight HTML layout and rendering engine
27 Feb 2004 by c-smile
27 Feb 2004 by c-smile
Auto Value is an implementation of variables having undefined state
29 Jan 2009 by calducciano
Hi, I have a quick question. (well, hopefully the answer is as quick as my question as I'm sure I'm doing something dumb.)I have a direct sound application that runs just fine as a windows console app which makes sense because there is nothing...
1 Jul 2009 by Caslen
I have a program running on several PCs at the same time (VS6.0, C++, MFC). The customers data files are stored centrally on the network. He's complaining that the same data file can be open on different computers at the same time and changes...
22 Sep 2008 by Cedric Moonen
Christian Flutcher wrote:I am confused how this is happening?Because you were lucky (or in your case, not ). In your ChangeData function, your local variable has a certain address which you store in your ptr variable. When the function exits,...
13 Oct 2009 by Cedric Moonen
No, you can't select the type of the class this way. However, by using pointers (or references), you can manipulate all buildings the same way by manipulating pointers to the base class (this is called polymorphism, google for it if you want more information).What you want are virtual constructors,
13 Mar 2009 by Cedric Moonen
Which kind of string ? C style strings ? Then use strcat. std::string ? Then use the + operator. Cédric MoonenSoftware developerCharting control [v1.5]OpenGL game tutorial in C++
26 Nov 2012 by chaau
Set pf2.cbSize = sizeof(PARAFORMAT2) after you ZeroMemory the pf2 and it should all work
23 Feb 2009 by Chandrasekharan P
Try using this piece of code. CStatic * myStatic = new CStatic;myStatic->Create(_T("my static"), WS_CHILD|WS_VISIBLE|SS_CENTER, CRect(10,10,150,50), this,1);
4 Mar 2004 by Chau Johnthan
An article on XML parsing using CString.
14 Apr 2004 by Chau Johnthan
Protect your component from automation clients
8 Sep 2015 by chetanvihite
In this post I am going to talk about Onion Architecture. There are several traditional architectures that exists in web world and each one of the architecture comes with its pros and cons. But most of the traditional architectures raises &#8230; Continue reading &#8594;
10 Oct 2008 by Chris Losinger
from io.h (and crtdefs.h)#ifndef _SIZE_T_DEFINED#ifdef _WIN64typedef unsigned __int64 size_t;#elsetypedef _W64 unsigned int size_t;#endif#define _SIZE_T_DEFINED#endif image processing toolkits | batch image processing
22 Sep 2008 by Christian Flutcher
I am progressing with my C++ learning. I am stuck with the following code. void ChangeData(int** ptr){ int ab = 1000; // scope in this method *ptr = &ab;}int _tmain(int argc, _TCHAR* argv[]){ int a = 10; int* aPtr = &a; ChangeData(&aPtr); cout...
25 Sep 2008 by Christian Flutcher
I know .NET framework and C# well. Recently I started working with C++/CLI which I felt more interesting than C#. Since .NET framework is becoming popular, do you think MFC got obsolete? Are you guys doing any projects in MFC other than...