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
0
votes
0 answers

How to change the color of a scrollbar in a CEdit Control?

I'm using a CEdit Control with the WTL framework and I've been searching around and I'm having trouble finding how to change the color of the scrollbar. Is there an easy way to do this or do you need to subclass the control?
LucasN
  • 243
  • 1
  • 2
  • 14
0
votes
1 answer

Why WM_CHAR is not called in my ListView

There is a WTL::CListViewCtrl, which is displayed in a Window. When it has the focus, and any key is pressed, the WM_KEYDOWN / UP is called, but the WM_CHAR. class CPopupList : public CWindowImpl { public: …
Zoli
  • 841
  • 8
  • 31
0
votes
1 answer

Tutorial does not compile

The following code from Michael Dunns series on WTL does not compile template class CMySplitterWindowT : public CSplitterWindowImpl, t_bVertical> First line of errors is:…
Jan S
  • 408
  • 6
  • 15
0
votes
1 answer

How to prevent WTL CSplitterWindow resize?

I am looking at MFC splitter window class override: https://www.codeproject.com/Articles/6188/How-to-prevent-resizing-of-views-in-a-splitter-win I had tested the override source code with WTL CSplitterWindow, but it doesn't worked. i had modified…
sailfish009
  • 2,561
  • 1
  • 24
  • 31
0
votes
1 answer

How to set CWindowImpl FullScreen in WTL application?

I am looking at MFC SDI Cview fullscreen sample application: https://www.codeproject.com/Articles/9632/Views-in-Full-Screen-Mode I test the fullscreen setting source code with WTL application, but it doesn't worked. should i have to use…
sailfish009
  • 2,561
  • 1
  • 24
  • 31
0
votes
1 answer

Is there any way to load a .png from my resources without using GDI+?

I am trying to load a .png I stored in my projects resources, in order to set it in a picture control, but I can't quite figure out why. I did some research, and it seems like .png is not really supported with the usual LoadImage()-call. However, I…
Sossenbinder
  • 4,852
  • 5
  • 35
  • 78
0
votes
0 answers

How can I change the border style of a Tab Control?

This is the tab control I am currently using in my dialog: However, the border style at the bottom and the right border is really annoying me. I would like to have the same style as on the left/top border. I can't seem to find any settings or…
Sossenbinder
  • 4,852
  • 5
  • 35
  • 78
0
votes
1 answer

Disable all top level window (WS_POPUP) when showing modal dialog

I have the main window, and then the user can "pop up" one of the frames in the application so that it floats rather than being contained in the main window. There are multiple frames that can be popped up so that in a given time there might be…
bysreg
  • 793
  • 1
  • 9
  • 30
0
votes
1 answer

WM_XBUTTONDOWN return value difference between ATL/MSDN documented value?

From https://msdn.microsoft.com/en-us/library/windows/desktop/ms646245(v=vs.85).aspx, I extract that: If an application processes this message, it should return TRUE. For more information about processing the return value, see the Remarks …
phimuemue
  • 34,669
  • 9
  • 84
  • 115
0
votes
1 answer

How can I obtain the content of a Edit Control with WTL?

I've already read up on a few threads here on how to achieve that. I tried several answers but none worked so far. I simply want to get the content of a Edit control, given as CEdit in WTL, and save it into a preferably std::wstring, but I guess I…
Sossenbinder
  • 4,852
  • 5
  • 35
  • 78
0
votes
0 answers

CListViewCtrl.GetSelectedItem() returns false values

This is the part of my code causing the mistake: LVITEM item = { LVIF_PARAM }; m_trackList.GetSelectedItem(&item); I want to get the pszText of the item, but I constantly get a NULL value after GetSelectedItem is being performed This part of the…
Sossenbinder
  • 4,852
  • 5
  • 35
  • 78
0
votes
1 answer

Error when trying to hook up a control with DDX_CONTROL

This is the code I'm trying to get to work right now: #pragma once #include "stdafx.h" #include "resource.h" class MusicPlayerDialog : public CDialogImpl, public CWinDataExchange { public: …
Sossenbinder
  • 4,852
  • 5
  • 35
  • 78
0
votes
0 answers

Is there a window setting for keeping a selected passage of text even after the text has been changed/refreshed?

I have a CEdit-Box containing some text, which is being refreshed by a thread every ~0.25 seconds. The problem is that everytime the text is being refreshed, a possible selection of text is being erased. I found 2 ways to avoid this so far: My…
Sossenbinder
  • 4,852
  • 5
  • 35
  • 78
0
votes
1 answer

Why the DrawItem method of my owner draw listbox can't be called

I try to write a owner draw listbox with WTL. My code looks like this template class ATL_NO_VTABLE CMyListBoxImpl : public CWindowImpl< T, TBase, TWinTraits >, public…
sili
  • 3
  • 3
0
votes
1 answer

My Win32 dialog is not receiving WM_GETOBJECT with lParam set to OBJID_CLIENT

I've written a custom control (that does not create an HWND) that sits inside a modal dialog. I'm trying to intercept WM_GETOBJECT with lParam set to OBJID_CLIENT so I can return my IAccessible implementation of my custom control. The strange thing…
cppguy
  • 3,611
  • 2
  • 21
  • 36