Hello! Help if you can. You need to write a program through WinApi: hide all the child windows of the calculator and after a while display them. I wrote, but the program only works with one window (if you run two or more calculators, only one of them will be used). Tell me how to fix it.
program Project3; uses SysUtils, Windows; var h: HWnd; function Callback(h:hWnd; lParam: LPARAM): Bool; stdcall; begin ShowWindow(H, SW_HIDE); Result := True; end; function Callback1(h:hWnd; lParam: LPARAM): Bool; stdcall; begin ShowWindow(H, SW_SHOW); Result := True; end; begin h := FindWindow(nil, 'Калькулятор'); EnumChildWindows(h,@Callback,0); Sleep(1000); EnumChildWindows(h,@Callback1,0); end.