Questions tagged [wtl]

The Windows Template Library (WTL) is an open source, object-oriented C++ template library for Win32 development. It is a lightweight alternative to the Microsoft Foundation Classes (MFC).

Sourceforge site - this is where to get the latest WTL download

MSDN Articles - February 2013 - a series of articles using WTL with . WIC Explorer

Codeproject - Particularly Michael Dunn's Series of articles

Developmentor One Two - documentation

Bjarke Viskoe - WTL applications with source code

Yahoo mailing list - (requires login) official WTL community, replicated on Gmane*

WTL works with & including Community Edition and previous professional and above versions, on all windows versions

*The Gmane link is currently unavailable, see http://gmane.org/about/

237 questions
2
votes
0 answers

How can I display a tooltip on a disabled button?

I have a button which is disabled with EnableWindow(false); However, at the same time, I want to display a tooltip on the disabled button via a CToolTipCtrl. The problem is that EnableWindow(false) has blocked all mouse events which would normally…
Sossenbinder
  • 4,852
  • 5
  • 35
  • 78
2
votes
1 answer

Set dialog box window class name

What's the proper way to subclass a dialog so that its class name will change to a specified one, so it would be later found with FindWindow (from another process)? class CMyDialog : public CDialogImpl { public: enum { IDD =…
Yakov Galka
  • 70,775
  • 16
  • 139
  • 220
2
votes
1 answer

Which HWND would I use to create a dialog in my WinMain function?

I'm currently trying to exercise C++ with WTL, and I am now facing this problem. So far I've worked with WTL quite a bit, but I always had a template which had the most basic window creation implemented already. However, I now want to do it myself,…
Sossenbinder
  • 4,852
  • 5
  • 35
  • 78
2
votes
1 answer

WTL CListViewCtrl getSelectedItem is causing an Assertion fail for me

This is my code in order to get the name of the item which has been selected in my CListViewCtrl: LVITEM item = { LVIF_PARAM }; CString itemText; clistViewCtrl.GetSelectedItem(&item); clistViewCtrl.GetItemText(item.iItem, item.iSubItem,…
Sossenbinder
  • 4,852
  • 5
  • 35
  • 78
2
votes
1 answer

WIC Explorer in Visual Studio 2015 Community Edition

I would like to get started with WIC(Windows Imaging Component) Explorer. I have downloaded the WIC Explorer Solution. I have downloaded Windows Template Library version 9.0 which is a requirement, and copied the files from the "Include" directory…
Duncan Gravill
  • 4,552
  • 7
  • 34
  • 51
2
votes
1 answer

BEGIN_MSG_MAP_EX breaks Visual Studio 2005 intellisense?

I have a C++ application using WTL/ATL BEGIN_MSG_MAP_EX macros for message handling. I use some macros from atlcrack.h. When we upgraded the projects to Visual Studio 2005, intellisense acts crazy. I've tracked the behavior down to the…
Bobby
  • 21
  • 1
2
votes
3 answers

ActiveX in IE. Dialog Box not showing XP Visual Style

I have an ActiveX control in IE (7). When it shows a dialog box, the dialog box is not showing in XP visual style. I have tried embedding manifests to no avail. Anybody got any idea? by the way, the dialog boxes were implemented using wtl.
user35708
  • 21
  • 2
2
votes
0 answers

How can I launch a .pdf with acrobat reader in windows from a HTML document?

I am developing a system which consists of two parts. A backend in C++ using WTL and a Frontend in HTML/Javascript, using the IE Controllers available in the Windows Template Library. At some point I need the user to be able to open a documentation…
Pablo Stark
  • 682
  • 10
  • 34
2
votes
2 answers

WTL Child window event handling

I am developing window application in that I am having 2 child windows on left and right side. I want to handle input events for both windows separately. How to achieve it? My code: class EditorWindow : public DxWindow { public: CSplitterWindow…
Rushikesh Talokar
  • 1,515
  • 4
  • 16
  • 32
2
votes
2 answers

Visual Studio loading unrelated DLLs into my project when debugging

I have Norton 360 installed on my system. I run this WTL project(VS2012) in debug mode, and in the output window I see the following line 'CheckWTL.exe' (Win32): Loaded…
user2432627
  • 157
  • 1
  • 2
  • 14
2
votes
1 answer

How can I wrap the item text in treeview control in WTL

I am maintaining a ATL/WTL project in which it contains a tree view. The class used for the tree view is CTreeViewCtrl. Now the client has asked to wrap the tree item text when it goes out of view though we can re-size the pane or scroll left of…
2
votes
2 answers

Compiler Errors in atlwin.h

When including atlwin.h from the Microsoft ATL libraries in Visual Studio 2013 building will result in numerous complier errors about undefined elements. i.e. #include class MainWnd : public CWindowImpl {}; "CWindowImpl: base…
user3054742
  • 79
  • 1
  • 4
2
votes
2 answers

Retrieve WTL object from handle

I had to rewrite a custom file dialog (derived from MFC's CFileDialog) to WTL's CFileDialog. I have a bit of a problem to retrieve data when I don't have access to the dialog object itself. Imagine the following. I have a member in the class static…
newhouse
  • 1,152
  • 1
  • 10
  • 27
2
votes
1 answer

WTL. Class derived from CEdit. Parent window does not react for EN_CHANGE

I need to handle EN_CHANGED. COMMAND_HANDLER_EX(0, EN_CHANGE, OnEdit) It works when I am using CEdit. But it does not work when I am using CMyEdit. class CMyEdit : public CWindowImpl What do I have to do?
Ufx
  • 2,595
  • 12
  • 44
  • 83
2
votes
1 answer

how to add windows 7 ribbons to a WTL app

Has anybody tried to use the native windows 7 ribbon control in a WTL app? I mean the control behind: #include or an example for the MFC. (i don't talk about the ribbons from the MFC Feature Pack!) --- Sven
sven
  • 107
  • 6