发消息实现啊
postmessage
sendmessage
都可以的,他们的第一个参数就THANDLE的

解决方案 »

  1.   

    例如
    SendMessage(handle,WM_PASTE,0,0)//就把剪贴板里的东西贴进去了很多了,不过我知道得不多
      

  2.   

    postmessage
    sendmessageHandle就象你的省份证一样标识窗口了。
      

  3.   

    如果你知道这个Handle是Edit的,不就可以通过遍历找出这个Edit了吗
      

  4.   

    postmessage
    和sendmessage是发消息的方法啊我现在是说我已经截获了一个消息已经知道了handle,我要对发送到的的窗口进行操作
    to inbud我不知道handle指向的窗口是什么
    to wisenowa  celeronII 是截获发往其它窗口的消息进行处理而不是怎样发送一个消息
      

  5.   

    P: Array[0..10] of char  ;
    GetClassName(Button1.Handle,p,10);
      

  6.   

    AGREE borlandor(大民) 
      

  7.   

    var P: Array[0..10] of char;
    procedure DoWithWindow(Handle:HWND);
    begin
      GetClassName(Handle,p,10);
      if AnsiCompareText(P,'TEdit') = 0 then
        {Do Edit}
      else if AnsiCompareText(P,'TButton') = 0 then
        {Do Button}
      else if AnsiCompareText(P,'TForm') = 0 then
        {Do Form}
      else
        {etc.}
      end;
    end;
      

  8.   

    要学习的最好看看,我觉得那边回答得好点
    http://www.csdn.net/expert/topic/672/672310.xml?temp=.5663416
      

  9.   

    EnableWindow(handle,true);-->Edit1.enabled:=true;
    EnableWindow(handle,false);-->Edit1.enabled:=false;
      

  10.   

    你可以遍例整个Form的所有控件,看看他们的handle哪个=你这个handle,for i:=0 to self.componentcount-1 do
    begin
      if (components[i] is tedit) and ((components[i] as twincontrol).handle=theHandle) then
        (components[i] as tedit).text:='你想设置的。';
    end;