|
Short story: Finds desired window based on partial (either "begins with" or "contains") caption.
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):
- Playing the Shell Game, Programming Techniques, VBPJ, September 1995
- List Your Higher Windows, Ask the VB Pro, VBPJ, June 1998
This sample uses the following API calls:
Module Library Function FINDPART.BAS user
user32FindWindow
GetParent
GetWindow
GetWindowText
IsIconic
SetActiveWindow
ShowWindow
FindWindow
GetParent
GetWindow
GetWindowText
IsIconic
SetForegroundWindow
ShowWindowFindPart5.bas user32 EnumWindows
GetWindowText
IsIconic
IsWindowVisible
SetForegroundWindow
ShowWindowFindPart5.frm user32 GetWindowText Don'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 FindPart.zip, 7Kb, Last Updated: Thursday, May 18, 2000