| 发表于:2007-08-02 20:09:324楼 得分:0 |
用api 抓 外部程序窗體的句柄 然後把外部窗體設為子窗體; 同理,可以抓外部程序的各個 子控件。 好象 有這幾個函數 findwindow; postmessage; setwindowpos; sendmessagebystring; public declare function setwindowtext lib "user32 " alias "setwindowtexta " (byval hwnd as long, byval lpstring as string) as long public declare function getwindowtext lib "user32 " alias "getwindowtexta " (byval hwnd as long, byval lpstring as string, byval cch as long) as long public declare function getwindowtextlength lib "user32 " alias "getwindowtextlengtha " (byval hwnd as long) as long public declare function enumchildwindows lib "user32 " (byval hwndparent as long, byval lpenumfunc as long, byval lparam as long) as long 'public declare function setfocus lib "user32 " (byval hwnd as long) as long public declare function enablewindow lib "user32 " (byval hwnd as long, byval fenable as long) as long | | |
|