Home | 10% - Off! | New | VCL | DB-Aware | Tools | DB Tools | Apps | Samples | .NET | .NET DB-Aware | .NET Tools | .NET Samples | Kylix | Docs | Bold | Discussion | Sites | Tips | DPFL | Authors | Uploads | RSS | Store | Advertisement | About
DPFL

Information
Introduction
Rules
Advertisement
Categories
Graphics
System
Forms
Windows
Databases
Math routines
Internet
Units/Libraries
RGB2HLS
DzURL
Delphi Procedures and Function Library > Categories > Windows

Click and process to the routine implementation...
GetTopParentWin() SetForegroundWindowEx()

Author Target Keywords Description
M Adler Win32 GetParentWindow, TopWindow Finding the top parent window of a child window
function GetTopParentWin(childw:hwnd):hwnd ;
var 
  wwnd:hwnd;
begin
  while True do
  begin
    wwnd := getparent(childw);
    if wwnd = 0 then break;
    childw := wwnd;
  end;
  result := childw
end;
Author Target Keywords Description
Artem A. Berman Win32 Window, Active, Foreground, Caption Setting Window with given caption foreground.
function SetForegroundWindowEx(FCaption: string): Boolean;
begin
  Result := SetForegroundWindow(FindWindow(nil, PChar(FCaption)));
end;


Advertising on Torry's Delphi Pages

Quick Search
Exact phrase
Title
Description

Useful Books

Advertising on Torry's Delphi Pages

Visit Our Delphi Site.

Up | Home | 10% - Off! | New | VCL | DB-Aware | Tools | DB Tools | Apps | Samples | .NET | .NET DB-Aware | .NET Tools | .NET Samples | Kylix | Docs | Bold | Discussion | Sites | Tips | DPFL | Authors | Uploads | RSS | Store | Advertisement | About
Copyright © Torry's Delphi Pages Torry's Delphi Pages Maintained by A. Berman. Notes? Comments? Feel free to send... Copyright © 1996-2002
All trademarks are the sole property of their respective owners
Do not click! Special anti-spammer page!