|
Short story: Constructs application lists, consisting of title and icon, as generated by the Alt-Tab window and Task Manager.
Longer description from old site: click here.
To be edited...
This sample, or the one from which it originally derived, was published (or at least peripherally mentioned) in the following article(s):
- Retrieve Windows Font Specification, Ask the VB Pro, VBPJ, March 2000
- Let Me Count the Ways, Desktop Developer, VSM, November 2001
This sample uses the following API calls:
Module Library Function CTaskList.cls user32 GetClassLong
GetClassName
GetForegroundWindow
GetParent
GetTopWindow
GetWindow
GetWindowLong
GetWindowText
IsIconic
IsWindow
IsWindowVisible
LoadIcon
SendMessage
SendMessageTimeout
SetForegroundWindow
ShowWindowTabOrder.frm user32 DrawIcon
GetKeyState
GetSystemMetricsDon't see what you're looking for? Here's a complete API cross-reference.
Please, enjoy and learn from this sample. Include its code within your own projects, if you wish. But, in order to insure only the most recent code is available to all, I ask that you don't share the sample by any form of mass distribution. Download AltTab.zip, 13Kb, Last Updated: Tuesday, June 13, 2000
The following resources may also be of interest:
- TaskList - Recreation of Task Manager's Applications tab shows how to properly terminate processes.