In continuation to recently posted “Smart ATL/WTL combo box and list view classes to cast and optionally manage typed control item data”, list box and tree view classes aware of typed item control data.
// Oprogramowanie Roman Ryltsov
Windows Template Library related
In continuation to recently posted “Smart ATL/WTL combo box and list view classes to cast and optionally manage typed control item data”, list box and tree view classes aware of typed item control data.
Inspired by the post on Yahoo’s WTL group (actually, I have been going to post on this topic for a couple of weeks already). Standard Windows controls (including common controls) that have multiple items (list box, combo box, list view, tree view etc.) have an option to attach user defined value of type DWORD_PTR (LPARAM)…
The idea is not new, to say the least, the interested ones may check this topic at codeguru.com. This sample demonstrate a most simple (and straightforward) method how to do the task and is basically a demo for a simple custom control, which is based on existing control.
While debugging, obtaining call stack at a certain [problematic] point of execution, such as especially deadlock condition or on assert, is an invaluable help. Debugger shows it, however it is possible to get the call stack programmatically and even more: having program database along with the executable it is even possible to resolve symbols and…
Windows Template Library contains atlcrack.h header file with macros to reinterpret window message parameters: split if required and cast to proper type. For instance, instead of: MESSAGE_HANDLER_EX(WM_SIZE, OnSize) … LRESULT OnSize(UINT, WPARAM wParam, LPARAM lParam) { UINT nType = (UINT) wParam; CSize Extent(LOWORD(lParam), HIWORD(lParam)); it allows to make things simpler and in a more reliable…
This sample projects shows how to create a cursor on runtime using CreateIconIndirect API as well as compose a new cursor out of the two cursor images, base and overlay image. A new cursor is composed out of system IDC_ARROW cursor and an application cursor resource. Keywords: HCURSOR, GetIconInfo, CreateIconIndirect. Visual C++.NET 2005 source code…
CColorComboBox is a customized combo box control which offers color selection using a set of predefined colors as well as opportunity to choose custom color using common color dialog.