Copy, Cut and Paste
-
I need to implement Copy,Cut & Paste to and from Windows Clipboard functionality on my C++ App, I see on web that I need to use functions:
BOOL SetClipboardText(LPCTSTR pszText) int GetClipboardText(LPTSTR pszBuf, int nLength)
but I can I get the selected text of a textbox or a selected object? Thanks -
I need to implement Copy,Cut & Paste to and from Windows Clipboard functionality on my C++ App, I see on web that I need to use functions:
BOOL SetClipboardText(LPCTSTR pszText) int GetClipboardText(LPTSTR pszBuf, int nLength)
but I can I get the selected text of a textbox or a selected object? ThanksSee How to Implement Drag and Drop Between Your Program and Explorer[^] but I dont think you need to this article see ClipSpy[^] and http://www.codeproject.com/clipboard/archerclipboard1.asp[^] does helpful?
WhiteSky
-
I need to implement Copy,Cut & Paste to and from Windows Clipboard functionality on my C++ App, I see on web that I need to use functions:
BOOL SetClipboardText(LPCTSTR pszText) int GetClipboardText(LPTSTR pszBuf, int nLength)
but I can I get the selected text of a textbox or a selected object? Thanks -
I need to implement Copy,Cut & Paste to and from Windows Clipboard functionality on my C++ App, I see on web that I need to use functions:
BOOL SetClipboardText(LPCTSTR pszText) int GetClipboardText(LPTSTR pszBuf, int nLength)
but I can I get the selected text of a textbox or a selected object? ThanksCDRAIN wrote:
I need to implement Copy,Cut & Paste to and from Windows Clipboard functionality on my C++ App
For edit controls, this is "on" by default.
CDRAIN wrote:
...can I get the selected text of a textbox or a selected object?
Are you looking for
GetWindowText()
?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
I need to implement Copy,Cut & Paste to and from Windows Clipboard functionality on my C++ App, I see on web that I need to use functions:
BOOL SetClipboardText(LPCTSTR pszText) int GetClipboardText(LPTSTR pszBuf, int nLength)
but I can I get the selected text of a textbox or a selected object? Thanks