Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Send a message to a window

Status
Not open for further replies.

cami58

Programmer
Feb 8, 2002
16
MA
Many applications use the keys CTRL + C (the control key + the C key)to put the selected text to the clipboard.Could some one tell me the parameters to send CTRL+C key to an application and force it to put the selected text and thanks.
 
If you are using MFC you should catch the CTRL+C in PreTranslateMessage function else(with SDK) in the window procedure loop on WM_COMMAND.

For the clipboard you have to use functions like OpenClipboard & similar. They exist also in MFC.

HTH, s-)

Blessed is he who in the name of justice and goodwill, sheperds the weak through the valley of darkness...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top