Показать сообщение отдельно
  #9  
Старый 10.08.2011, 01:12
criss009 criss009 вне форума
Прохожий
 
Регистрация: 09.08.2011
Сообщения: 11
Репутация: 10
По умолчанию

чтото он ругаеться
Код:
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls;

type
  TForm1 = class(TForm)
    btn1: TButton;




  procedure btn1click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;
    Wnd  : HWND;
implementation

{$R *.dfm}



procedure EnumChild(Wnd : HWND);
begin
  if (not EnumChildWindows(Wnd, @EnumChildProc, 0)) then
    Exit;
end;

procedure TForm1.btn1click(Sender: TObject);
var
  Wnd: HWND;
begin
  Wnd := FindWindow(NIL, '???????????');
  if Wnd <> 0 then
  begin
    ShowWindow(Wnd, SW_RESTORE);

    if not EnumChildWindows(Wnd, @EnumChildProc, 0) then
    begin
      Exit;
    end;
  end;
end;




end.
Ответить с цитированием