Our customer has a bit unusual wish -- to be able to use the content of the clipboard in a list box. Basically, items should be selected based on the content from the clipboard (kind of paste operation), or some info from the selected items should be copied into the clipboard (kind of copy operation).
The application is implemented in C++, using MS Visual Studio C++ (VS 2005 for that version of the application). I am also using ATL and WTL libraries (no MFC is used).
So far, I have the implementation that uses the context menu items for invoking the operations.
Can the operations be bound somehow to the Ctrl+C and Ctrl+V combinations?
Using a Spy++, it seems that the WM_COPY and WM_PASTE messages are not supported for the listbox windows. Is my observation correct?
Definitely, it is possible to capture WM_KEYUP and WM_KEYDOWN and the like low-level messages. Is there any ready-to-be-used code to translate them to something like WM_COPY and WM_PASTE messages? I only need to detect the situation to call the handler functions.
Thanks for your time and experience,