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

WTL layout with resizing

I'd like to know how people with more WTL knowledge would creating something like this: A dialog that is resizable (-> WS_THICKFRAME) that contains two 'areas'. One area grows in the y-direction when resizing and contains a few components that…
xnor
  • 41
  • 2
4
votes
1 answer

Change the background color of a subclassed CStatic control

I am writing my own CStatic subclass right now, and I am a bit stuck on how to change its background color. From previous experience I am used to reacting to the "CTLCOLORSTATIC" message with the color I want. However, this is my subclass at the…
Sossenbinder
  • 4,852
  • 5
  • 35
  • 78
4
votes
1 answer

How to emulate a modal dialog in WTL?

Modal dialogs are nice and easy to use. Problem is that they don't allow me to handle the message loop myself. So I thought I could perhaps use a modeless dialog to emulate a modal one and still be in charge of the message loop myself in order to…
0xC0000022L
  • 20,597
  • 9
  • 86
  • 152
4
votes
1 answer

Background color of CStatic issue

I'm having an issue with setting the background color of a CStatic using WTL (I'm guessing I'd have the same issue with MFC) I have a window with a black background, that has a control that derives from CStatic on it. I'm setting the colors via the…
bpeikes
  • 3,495
  • 9
  • 42
  • 80
4
votes
4 answers

ComboBoxEx32 (CComboBoxEx) keyboard behaviour

I have a WTL application that uses an extended combobox control (the Win32 class ComboBoxEx32) with the CBS_DROPDOWNLIST style. It works well (I can have images against each item in the box) but the keyboard behaviour is different to a normal…
Rob
  • 76,700
  • 56
  • 158
  • 197
4
votes
2 answers

Implementing scroll in custom drawn control in WTL

I have created my own custom drawn list with checkboxesin WTL, I want to make it scrollable now, the thing is that I am subclassing a Static Text control over which I draw.. And I don't know if static controls support scrolling in any way.. Anyway…
AlexandruC
  • 3,527
  • 6
  • 51
  • 80
4
votes
1 answer

CAppModule vs CAtlExeModuleT , getting the application message loop

I am trying to get the message loop from a ATL::CAppModule in my project, there seems to be none, so: I've tried defining CAppModule, with extern CAppModule _Module; in "stdafx.h" and CAppModule _Module; in my .cpp file, it compiles, linkes and at…
AlexandruC
  • 3,527
  • 6
  • 51
  • 80
4
votes
3 answers

Why is my owner-drawn combobox shown empty?

I'm subclassing a WTL combobox and I'm owner-drawing the items of the combobox. The control has the attributes CBS_DROPDOWNLIST | CBS_HASSTRINGS | CBS_OWNERDRAWVARIABLE and I'm using the mix-in class COwnerDraw to implement DrawItem() and…
vividos
  • 6,468
  • 9
  • 43
  • 53
4
votes
2 answers

Using WTL with Codeblocks

I want to try WTL, but problem is i can't use Visual Studio for this. So i've codeblocks on my side. Is there any way i can use WTL with codeblocks ? I mean configuration/settings that i need to do for this ? is it possible to use WTL with…
Mahesh
  • 487
  • 5
  • 13
4
votes
4 answers

Why does *everything* use a template base class in ATL/WTL?

I'm having a lot of trouble understanding the purpose of templates in ATL/WTL code. When you look at WTL, you see code like: template class CEditT : public TBase { ... }; typedef CEditT CEdit; Why is CEditT defined…
user541686
  • 205,094
  • 128
  • 528
  • 886
3
votes
1 answer

identifier is undefined in ATL\WTL application

I've created new ATL\WTL project in Visual Studio 2010. I've got red lines under CAppModule,CMessageLoop and etc. with error identifier is undefined How can this be solved?
3
votes
1 answer

How can you allow a window in an MDI app to leave it's parent container w/Win32?

I have an MDI app. I would like to add an icon to the non client title bar of the child window that allows the window to float separately from the parent MDI container, allowing the user to take the child windows and arbitrarily place them around…
ApplePieIsGood
  • 3,731
  • 6
  • 35
  • 51
3
votes
3 answers

Pre-registering an ATL window class

I am using a combination of the ATL and WTL for a project and have derived my own class from CWindowImpl, which looks something like this: class CMyControl : public CWindowImpl { public: DECLARE_WND_CLASS(_T("MyClassName")) ... …
Rob
  • 76,700
  • 56
  • 158
  • 197
3
votes
2 answers

Confused by BEGIN_MSG_MAP and BEGIN_MSG_MAP_EX

I am tracing a bug and I suspect the root could be in the use of WTL macros. When sould I use *_EX and when normal macros. For BEGIN_MSG_MAP_EX there is a note in atlcrack.h // Note about message maps with cracked handlers: // For ATL 3.0, a message…
cprogrammer
  • 5,503
  • 3
  • 36
  • 56
3
votes
2 answers

WTL way of forcing resources to load from a dll in a non mfc app? (we are using WTL/ATL, not straight win32)

I posted this question previously and now have the localized strings loaded (the ones we get with LoadString()) but I also need to load all the other resources from the satellite DLL. MFC has the AfxSetResourceHandle () call, but I need something…
Tim
  • 20,184
  • 24
  • 117
  • 214
1
2
3
15 16