請教各位大牛:
使用sendmessage(hwnd,WM_PASTE,0,0)發送粘貼訊息時;是否能確定粘貼位置,如何確定?
uj5u.com熱心網友回復:
你可以模擬發送Ctrl+V,想要對指定的視窗來粘貼,你需要先將該視窗SetForroundWnd,模擬點擊獲取焦點,然后再Ctrl+Vuj5u.com熱心網友回復:
謝謝Eleven回復。通過sendmessage發送WM_PASTE訊息,每次只是粘貼在(0,0)位置。加入我想粘貼在(0,100)處,就不知怎樣做了,請指教。uj5u.com熱心網友回復:
WM_PASTEAn application sends a WM_PASTE message to an edit control or combo box to copy the current content of the clipboard to the edit control at the current caret position. Data is inserted only if the clipboard contains data in CF_TEXT format.
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/153569.html
標籤:進程/線程/DLL
上一篇:請教高手和前輩,關于服務器程式怎么樣高效訪問資料庫的問題。
下一篇:請教CArray序列化問題
