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
3
votes
2 answers

simple winapi spin control

I am trying to make a simple spin control and edit box in WTL &/ winapi. and this does not work properly, because I only see 0 as initial value and the arrows don t work, code here: HWND spin = GetDlgItem(IDC_SPIN1); HWND edit =…
AlexandruC
  • 3,527
  • 6
  • 51
  • 80
3
votes
2 answers

Detect clicking inside listview and show context menu

I have a listview created as a resource and loaded on a dialog window. I want to detect and show a context menu only when items within the listview have been clicked. MESSAGE_HANDLER(WM_CONTEXTMENU,OnContextMenu) LRESULT…
fire xzanderr
  • 213
  • 2
  • 13
2
votes
3 answers

WTL CListViewCtrl with status text

I have a Windows Template Library CListViewCtrl in report mode (so there is a header with 2 columns) with owner data set. This control displays search results. If no results are returned I want to display a message in the listbox area that…
Skrymsli
  • 5,173
  • 7
  • 34
  • 36
2
votes
3 answers

How to send a link to an application, like Spotify does

When we save a level in our editor, we create a log file of any errors it contains. These consist basically of an error message and a path that allows the user to find the erronous item in a tree view. What I want is to make that path a link,…
Srekel
  • 2,183
  • 3
  • 21
  • 26
2
votes
1 answer

How to create a splitter in ATL/WTL?

I want to place the elements of my (resizable) dialog in one of two panes. How do I create a splitter for the panes, using WTL? I found CSplitterImpl and CSplitterWindowImpl, but I can't figure out how to use them with my dialogs.
user541686
  • 205,094
  • 128
  • 528
  • 886
2
votes
1 answer

System Default Dialog Font?

The default dialog box font in Windows is MS Shell Dlg. I don't like it, because it's not correct. It's easy to manually change the font of a single dialog item, but how do I display a dialog box with the "correct" system font (from lfMessageFont)…
user541686
  • 205,094
  • 128
  • 528
  • 886
2
votes
1 answer

Using the system setup icon

I'm developing a windows application in C++. I use wtl. One of the application window's title bar should display a system setup icon as it is in a typical setup program. Could you please share a way how can a load a system setup icon into my…
Vitaly
  • 597
  • 1
  • 5
  • 12
2
votes
2 answers

How do you handle right click on a treeview in WTL/Win32 apps?

I have a basic app written with ATL, using the wizard with VS2008. I have a treeview in the left side of the app. I see how to (painfully) add tree items. Question is how do I show a menu when the mouse is right clicked? How do I trap any click…
ApplePieIsGood
  • 3,731
  • 6
  • 35
  • 51
2
votes
2 answers

C# Winforms Timeline control ( from WTL ? )

I need a timeline control for one of my projects (Winforms/C#)and Im really not sure how i should create one from scratch. I have some visual idea of what i want. Something similar to the link below…
techmanc
  • 293
  • 1
  • 7
  • 19
2
votes
2 answers

Use CString in console app when using VS Express

I have a problem when trying to use CString. I have a console application written using VS2010Express. I have a piece of code I would like to use, but it uses CString. When I try to include the appropriate header atlstr.h (as far as I know) I get…
Lumpi
  • 2,697
  • 5
  • 38
  • 47
2
votes
1 answer

C++ program not responding to tile/cascade window from task bar

I have a complicated program in C++ (hybrid of old-school Win32 and WTL) which does not respond to any taskbar tile/cascade request (i.e. right click on task bar and select "Cascade Windows" or "Show window side by side"). When I use spy++, I found…
Peon the Great
  • 1,289
  • 1
  • 10
  • 17
2
votes
0 answers

Changing the size of Datepicker cells based on WTL

I am working on a datepicker named CDatePicker which is implemented as class CDatePicker : public CWindowImpl I want to change the size of day rect, next button, previous buttons, etc. I found that the size of…
CodePlayer
  • 21
  • 1
2
votes
0 answers

ATL/WTL predefined variable _Module : Isn't this illegal identifier in C++?

ATL/WTL automatically creates skeleton codes with global variable _Module defined. And I've found that WTL expected this to be defined in this specific name till version 7. I also heard that ATL project wizard also generates symbols such as…
vbstb
  • 1,261
  • 1
  • 10
  • 14
2
votes
2 answers

What's wrong with my attempt at subclassing CButton?

I tried to create a subclassed control for the first time, but I feel like I did something wrong. The control is a Button, which I placed in the designer. This is its class: class TTTField : public CButton { public: BEGIN_MSG_MAP_EX(TTTField) …
Sossenbinder
  • 4,852
  • 5
  • 35
  • 78
2
votes
1 answer

CWindowImpl - Create() returns error code 1406

I just tried to setup a small win32 project, and was just about to create a window. I created a dialog in the resource designer and set up this class for my window: #pragma once #include "stdafx.h" class TTTMainDialog : public…
Sossenbinder
  • 4,852
  • 5
  • 35
  • 78