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

Broadcasting message and message handler function to windows attached to process

Is there a way to have a single message handler function that will be called for WM_SETCURSOR for all the windows attached to the process, instead of writing the same code for all types of windows in the application?
GreatDane
  • 683
  • 1
  • 9
  • 31
0
votes
1 answer

specify parent window in Windows Resource Script file(*.rc)

I'm looking for a method to specify parent window in *.rc file. In *.rc file, it contains the layout and controls of a dialog. Any new control added into it, will automatically become a child window of Dialog itself. But I want to add a custom draw…
welemon
  • 129
  • 2
  • 7
0
votes
1 answer

How to implement zooming of a listview using Win32/WTL

I have implemented a light-weight log viewer in WTL/C++ a while ago. Recently decided to extend the UI with ability to zoom-in/zoom-out. I added derivation from CZoomScrollImpl as shown below: class CLogView : public CWindowImpl
Terry
  • 310
  • 3
  • 9
0
votes
1 answer

WTL 9 and visual studio 2013 community edition

I've tried compiling a few of the WTL 9 sample applications with visual studio 2013 community edition. Since community edition reported to be a free version of professional, should this work? First line of compiler output: c:\program files…
Jan S
  • 408
  • 6
  • 15
0
votes
1 answer

Splitting the main message map (BEGIN_MSG_MAP_EX) into two files

I'm experimenting with WTL, and I'd like to separate a large message map to two or more files. For example, I'd like to move the tray icon logic into a separate file. I'm aware of CHAIN_MSG_MAP and CHAIN_MSG_MAP_MEMBER, but what should I use in this…
Paul
  • 6,061
  • 6
  • 39
  • 70
0
votes
1 answer

Embed WTL App in ATL ActiveX control

Is there a way to somehow Embed a WTL destop application in ATL ActiveX (ie extension)? What I'm trying to achieve is to create an ActiveX control with office files Viewer. As a base I have a desktop WTL application (written some time ago) which…
beermann
  • 358
  • 1
  • 6
0
votes
1 answer

Printing on console WIN32/WTL

I am developing WTL GUI application. I want to print something on console. How to enable console printing in win32/WTL application.
Rushikesh Talokar
  • 1,515
  • 4
  • 16
  • 32
0
votes
1 answer

firebreath plugin create a full screen window, but the window always under the browser window when it appers, how can I bring it to top

CaptureScreenApp app; int MyPluginAPI::captureScreen(const FB::JSObjectPtr& callback) { boost::thread cs(boost::bind(&CaptureScreenApp ::captureScreen, app, callback)); return 1; } class CaptureScreenApp { public: …
yyj
  • 15
  • 3
0
votes
2 answers

How to create something like Expander control in WPF using only WinAPI (ATL/WTL)?

I am newbie in English, sorry :) How to create something like Expander control in WPF using only WinAPI (ATL/WTL)? Are some experince avaliable? Thank for answers!
Logrus
  • 1
  • 1
0
votes
3 answers

WM_POWERBROADCAST handler for CMainDlg in ATL app not invoked

I have an ATL app where I want to handle WM_POWERBROADCAST. I have a CMainDlg (CAxDialogImpl) in whose MSG_MAP I defined the handler. BEGIN_MSG_MAP(CMainDlg) ... MESSAGE_HANDLER(WM_POWERBROADCAST, OnPowerChange) …
psychotik
  • 38,153
  • 34
  • 100
  • 135
0
votes
2 answers

how to go about developing an application for 3 Windows platforms

I want to rewrite an application that will be available on Windows desktop, Windows store, and Windows Phone. Current state: Windows desktop is MFC app. Windows store and Windows Phone are sharing a PCL for backend and network comm. I have to…
Ron
  • 24,175
  • 8
  • 56
  • 97
0
votes
2 answers

How to access a control on a ribbon tab that has not been opened yet?

I have a ribbon application that has three tabs. On the OnCreate event, I need to check a CheckBox that is not on the tab that is shown when the application opens. The problem is I can't check that CheckBox. When I open the tab that contains it, the…
0
votes
1 answer

window is continuously getting WM_WINDOWPOSCHANGING

I have created a window and embedding a CAxWindow inside that parent window. When I create main window I also create CAxWindow window . NOw issue is that I have added WM_WINDOWPOSCHANGING message in my main window and its getting called…
anand
  • 11,071
  • 28
  • 101
  • 159
0
votes
0 answers

c++ listview tooltip implementation - not getting notification

In my dialog WM_INITDIALOG handler I set the LVS_EX_INFOTIP | LVS_EX_LABELTIP styles to the window like so: ListView_SetExtendedListViewStyle(GetDlgItem(IDC_MAIN_LIST), LVS_EX_INFOTIP | LVS_EX_LABELTIP); The dialog's message map definition…
AlexandruC
  • 3,527
  • 6
  • 51
  • 80
0
votes
1 answer

Handle moving with CSplitterWindowImpl and invalidate child panes

I need to invalidate two panes when splitter is moving in WTL. Currently one of them invalidating when splitter is moving and other is invalidating when splitter moving stopped. How can I handle splitter moving?
Ufx
  • 2,595
  • 12
  • 44
  • 83