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
1 answer

WTL 8.0 _Module and Message Loop

I'm working on a WTL project, actually WTL 8.1 with VS2008. In many tutorials I've seen the usage of _Module global variable, e.g: _Module.AddMessageLoop. My current application creates a CMessageLoop in the stack at WinMain and later calls the…
Hernán
  • 4,527
  • 2
  • 32
  • 47
0
votes
1 answer

C++ how to draw line chart using WTL?

I am new to C++ and WTL, does WTL provide good API's to display line (stacked area, column) charts? Or do we need to use 3rd party library to integrate the same with our existing C++ code? It would be great if i can some pointers to…
Gana
  • 979
  • 3
  • 10
  • 18
0
votes
1 answer

StaticText background in TabControl... What events should be processed?

I am rewiting the older application to get the modern look in Windows 7. The GUI elements are created and moved via the explicit code (no special layout manager). Because of some historic reasons, the GUI events were not processed the standard way.…
pepr
  • 20,112
  • 15
  • 76
  • 139
0
votes
1 answer

Graying out a wizard's Close button in WTL

I'm writing a WTL Aero wizard and I'd like to gray out the window's Close button (its first step will require no user interaction and can not be canceled, so disabling the button is perfectly appropriate). Putting the following code: CMenuHandle…
Alessandro Menti
  • 1,290
  • 20
  • 28
0
votes
1 answer

Hide a CDialogImpl dialog when user cancels

Using a CDialogImpl derived class as a dialog-based WTL/ATL app, I want to hide the main window when the user clicks the upper right "X" button (or presses Esc or Alt+F4). Currently the "X" closes the dialog and ends the application. I want to…
Uwe Keim
  • 39,551
  • 56
  • 175
  • 291
0
votes
1 answer

C++ MFC - Sharing data between MFC DLL and WTL exe?

I have a MFC project that provides a GUI interface for manipulating a complicated data structure (let's call it ComplicatedClass). I have a WTL project that needs to use this class a lot. I would like to be able to manage only one instance of this…
user1040229
  • 491
  • 6
  • 18
-1
votes
1 answer

Change dialog font at runtime

I'd like to change the font of a few dialogs. The fonts of these dialogs are not to be changed using the ressource editor they are to be changed at runtime. The dialogs in question are all based on ATL/WTL and they're declared pretty much like the…
Marc
  • 41
  • 1
  • 5
-1
votes
1 answer

How to detect the control text's line number?

The dialog contains the static text control. When intializing the dialog the application sets a custom text to this static text control: HWND hWnd = GetDlgItem(IDC_MY_STATIC_TEXT); ::SetWindowText(hWnd, szMyCustomText); I need to know the number of…
Vitaly
  • 597
  • 1
  • 5
  • 12
-1
votes
1 answer

How to change the mouse cursor icon type when mouse moves out of client area ( propertysheet)?

I got stuck with an issue in property sheet .I want to load different cursor when the mouse position is within the client area and load another when moves out of the client area. In the porpetysheet I added four page. In the first page when I click…
Siva
  • 1,281
  • 2
  • 19
  • 41
-1
votes
1 answer

C++ WTL: Deriving from CListBox

I'm trying to create a custom CListBox derived class. I am having trouble figuring out how to set up the message map stuff properly. This is the current code I am using: template class CHScrollListBoxT : public…
Andrew
  • 1,581
  • 3
  • 18
  • 31
-2
votes
1 answer

Does WTL CWindowImpl compatible with CWnd?

i have simple video player. https://github.com/sailfish009/sample_video now i want to port it to windows template library 9.1. Edit: solved, CWindowImpl's handler compatible with CWnd's. //screen = SDL_CreateWindowFrom(this->m_hWnd); //HWND from…
sailfish009
  • 2,561
  • 1
  • 24
  • 31
-2
votes
1 answer

Get main frame window

I want to get main frame window. How to get main frame window in WTL-MDI? class CChildFrame : public CMDIChildWindowImpl { ... LRESULT OnEdit(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& bHandled) { …
1 2 3
15
16