This seems like a rather roundabout way of doing it. Why not do the copy either right here, or in a `WM_KEYDOWN` handler in `MainWindowProc`? Moreover, the documentation for `WM_COPY` says it's to be used with edit controls or combo boxes, and while I don't think it makes this use an error, it's still questionable.