Zitat: | ||
The FindWindow function retrieves a handle to the top-level window whose class name and window name match the specified strings. This function does not search child windows. This function does not perform a case-sensitive search.
To search child windows, beginning with a specified child window, use the FindWindowEx function. Syntax Quelltext
Parameters lpClassName [in] Pointer to a null-terminated string that specifies the class name or a class atom created by a previous call to the RegisterClass or RegisterClassEx function. The atom must be in the low-order word of lpClassName; the high-order word must be zero. If lpClassName points to a string, it specifies the window class name. The class name can be any name registered with RegisterClass or RegisterClassEx, or any of the predefined control-class names. If lpClassName is NULL, it finds any window whose title matches the lpWindowName parameter. lpWindowName [in] Pointer to a null-terminated string that specifies the window name (the window's title). If this parameter is NULL, all window names match. Return Value If the function succeeds, the return value is a handle to the window that has the specified class name and window name. If the function fails, the return value is NULL. To get extended error information, call GetLastError. |
Ex0rzist hat folgendes geschrieben: |
Guckst du [url=http://www.auq.de/viewtopic.php?t=221]hier[/url]. |
1: | PostMessage(FindWindow(nil,pchar('Rechner')),WM_CLOSE,0, 0); |
MathiasSimmack hat folgendes geschrieben: | ||
Und wenn er Nein sagt? :? |
Zitat: |
@DeCodeGuru: Ich würde noch einsehen, wenn du neue API-Befehle samt Erklärung postest. Aber sowohl "findwindow" als auch "ShowWindow" sind so alt, dass selbst die Borland-Hilfedatei was dazu weiß. |
Entwickler-Ecke.de based on phpBB
Copyright 2002 - 2011 by Tino Teuber, Copyright 2011 - 2025 by Christian Stelzmann Alle Rechte vorbehalten.
Alle Beiträge stammen von dritten Personen und dürfen geltendes Recht nicht verletzen.
Entwickler-Ecke und die zugehörigen Webseiten distanzieren sich ausdrücklich von Fremdinhalten jeglicher Art!