Re: [Dev-C++] Detecting running applications
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Kevin W. <ke...@me...> - 2001-11-18 18:22:52
|
Perhaps the window-enumerating function is what you need?
When you identify the correct window, you could then call
SetForegroundWindow
Kev.
(From the Windows
SDK)......................................................................
The EnumWindows function enumerates all top-level windows on the screen by
passing the handle of each window, in turn, to an application-defined
callback function. EnumWindows continues until the last top-level window is
enumerated or the callback function returns FALSE.
BOOL EnumWindows(
WNDENUMPROC lpEnumFunc, // pointer to callback function
LPARAM lParam // application-defined value
);
Parameters:
lpEnumFunc
Points to an application-defined callback function. For more information,
see the EnumWindowsProc callback function.
lParam
Specifies a 32-bit, application-defined value to be passed to the callback
function.
Return Values:
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Remarks:
The EnumWindows function does not enumerate child windows.
............................................................................
...............................
----- Original Message -----
From: dx FX <vin...@ed...>
To: Dev-C++ mailing list <dev...@li...>
Sent: Sunday, November 18, 2001 3:27 AM
Subject: [Dev-C++] Detecting running applications
> How do I get the names and handles of the programs/applications currently
running and how do I turn Focus to them? also, how do I detect, and get the
tray icons on the system tray?
>
> __________________________________
> www.edsamail.com
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|