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

Are there issues with DTN_DATETIMECHANGE breakpoints and the date time picker control?

I have a Windows application which I'm working on and have experienced a strange problem when debugging. I'm using WTL, and have a CDateTimePickerCtl on the form to set a date. I'm handling the DTN_DATETIMECHANGE event with the following in my…
bpeikes
  • 3,495
  • 9
  • 42
  • 80
0
votes
1 answer

Start and End DateTimePickerCtrl in WinApi/WTL

I have two DateTimePicker Controls in Win Api/WTL/ATL, the first represents a start date and the second one represents the end date, how can I restrict the date selected on the second one to be 'later' than the one selected in the first one?
AlexandruC
  • 3,527
  • 6
  • 51
  • 80
0
votes
1 answer

WTL multithreading, multiple interfaces & libraries

I have a Main Thread that displays an interface, within another thread created from the main thread before the Main interface is shown, I create tow other windows sequentially: I create the first window: CWarningDlg warnDlg; …
AlexandruC
  • 3,527
  • 6
  • 51
  • 80
0
votes
1 answer

WTL ListView programatically set items state

While having a Listview with checkboxes, how do you programatically set all items to be checked?
AlexandruC
  • 3,527
  • 6
  • 51
  • 80
0
votes
0 answers

Owner drawing a checkbox List View

I have created a List view control with View = Icon / List, with LVS_EX_CHECKBOXES enabled. And the checkboxes overlap with the items text, so I am wondering how could I create a owner drawn list view with checkboxes ? I have seen that one has to…
AlexandruC
  • 3,527
  • 6
  • 51
  • 80
0
votes
2 answers

can't change mfc controls order

I have a dialog box with a list box,slider and a button. I tried to change the background color but I couldn't managed to change that, so i thought that if I add a "picture control" as a bitmap and put it in the background i will succed, but now the…
David
  • 287
  • 2
  • 3
  • 13
0
votes
1 answer

How to fix the background is not update when using SetBkMode with TRANSPARENT

I have a problem with SetBkMode with TRANSPARENT. The previous text does not clear from a bitmap before drawing a new text. This is the code for drawing. void PaintWindow(WTL::CDCHandle dc) { CRect rcWindow; HFONT hPrevFont, hFont; DWORD…
UltimaWeapon
  • 2,343
  • 18
  • 19
0
votes
1 answer

Winapi radio button bevahivour

I have created a custom image drawing checkbox in WTL and I am now trying to create a custom image drawn radio button, how does the radio button work, when a user cliks one button to select it how does the other buttons get unselected? Do they…
AlexandruC
  • 3,527
  • 6
  • 51
  • 80
0
votes
1 answer

Win32 tooltip appears on the top of the screen when it goes out on the bottom

I am using my own tooltip to display quick help about a currently selected item in my autocomplete listbox used in my editor. Just like VS does it for source code editor, when a new selection happens, the tooltip permanently and immediately pops up…
Zoli
  • 841
  • 8
  • 31
0
votes
2 answers

WTL RedrawWindow parameterrs

I'm new to the WTL C++. I'm really confused about the parameters that go into the RedrawWindows function especially for the flags. I'm just trying to update a window everytime I draw a line, but I don't exactly understand how LRESULT …
user1665569
  • 191
  • 4
  • 8
  • 17
0
votes
0 answers

WTL. CTabCtrl. Do not erase children windows regions

I want to disable blinking. How to disable erase background for children windows regions in CTabCtrl?
Ufx
  • 2,595
  • 12
  • 44
  • 83
0
votes
1 answer

Custom drawing dialogs in win32/wtl

In using WTL/ATL/ Windows API, I have created a window dialog with buttons and a listview, I want to apply some styles I have received as images, also roud courners, I have read about owner drawn..custom drawn and other stuff but I can't find an…
fire xzanderr
  • 213
  • 2
  • 13
0
votes
1 answer

Get active MDI child window

How to get active child frame from main frame?
Ufx
  • 2,595
  • 12
  • 44
  • 83
0
votes
1 answer

Moving a listview item from one group to another

I have created a listview in Win32 with group view enabled, I can add Items to a group, but I Have multiple groups and I want an item to pass from group A to group B. I have found the macro ListView_MoveItemToGroup, I call it like so int i =0; i =…
fire xzanderr
  • 213
  • 2
  • 13
0
votes
3 answers

How to get items from a ListViewCtrl multiple selection in WTL?

I have a ListViewCtrl in a WTL program. I need to get the items selected by the user(multiple selection). I can only het the count of selected items using GetSelectedCount(). GetSelectedItem() doesnt work with multiple selection.
Rohit Vipin Mathews
  • 11,629
  • 15
  • 57
  • 112
1 2 3
15
16