| Windows with Delphi Windows API (94) Windows Filesystem (41) Windows Forms (69) Windows Graphics (38) |
Traverse the global list of all windows
Sometimes you may want to do something with all windows (and controls) on the screen, including non-Delphi windows. For such a purpose, you will use the API function EnumWindows. The following code includes the calls MakeProcInstance/ FreeProcInstance, which are needed in 16bit-Windows (including Delphi 1 under Win95). This sample code hides every existing window.. a rather useless example, but after all, it's just an example.
Comments:
|