就是发送消息啊自己看吧。LRESULT SendMessage(    HWND hWnd, // handle of destination window
    UINT Msg, // message to send
    WPARAM wParam, // first message parameter
    LPARAM lParam  // second message parameter
   );
 ParametershWndIdentifies the window whose window procedure will receive the message. If this parameter is HWND_BROADCAST, the message is sent to all top-level windows in the system, including disabled or invisible unowned windows, overlapped windows, and pop-up windows; but the message is not sent to child windows. MsgSpecifies the message to be sent. wParamSpecifies additional message-specific information. lParamSpecifies additional message-specific information.  Return ValuesThe return value specifies the result of the message processing and depends on the message sent. 

解决方案 »

  1.   

    我不是高手。
    参见
    http://www.csdn.net/expert/topic/99/99647.shtm
      

  2.   

    哇塞,那位老兄在copy帮助文件呢?嘻嘻。
      

  3.   

    哈哈,以前我也问一些ABC的问题,后来发现看帮助文件这些ABC的问题都可以解决,呵呵。。虽然我的英文语法奇差,但是看帮助文件和MSDN却比较流利,怪事
      

  4.   

    var
    str:string;
    ......setlength(str,255);
    Sendmessage(XXX.hwnd,wm_gettext,integer(pchar(str)) ,255  );
      

  5.   

    实际上应该分成两步骤:
    wm_Gettextlength
    wm_gettext