Time:09-28
CodePudding user response:
try WH_CALLWNDPROC
SPY++ under test, and see if I can capture the
auspicious see CallWndProc , WParam [in] Type: WPARAM Specifies been the message was sent by the current thread. If the message was sent by the current thread, it is nonzero; Otherwise, it is zero. LParam [in] Type: LPARAM A pointer to A CWPSTRUCT structure that contains the details about the message.
WM_COPY An application sends the WM_COPY message to an edit control or combo box to copy the current selection to the clipboard in CF_TEXT format. WM_COPY WParam=0;//not 2; Must be zero LParam=0;//not 2; Must be zero
"why this program outside of the notepad" not Edit controls?
then you send a textbox WM_COPY look? Such as Char TXT [40]. PWndEdit1000 - & gt; The SendMessage (WM_COPY, 0, 0);//COPY data to the clipboard GetCBtext (TXT);//the data on the clipboard to TXT [40], remove the input box value
Page link:https//www.codepudding.com/Softwareengineering/39572.html