SendMessage(nextClipboardViewer, m.Msg, m.WParam, If it is, I then set the form’s next window member variable ( nextClipboardViewer) to the next window in the chain (passed in the Message.LParam member): In the WM_CHANGECBCHAIN message-handling code, I check to see whether the window being removed from the Clipboard chain (passed in the Message.WParam member) is the next window in the chain. (You can see the code to display RTF and ASCII text in the article’s demo code at the end of this column.) In the WM_DRAWCLIPBOARD message-handling code, I call a helper function to display the text that is currently on the Clipboard and pass the same message on to the next window in the chain. Note that I define two constants for these messages (where both values can be found in the Platform SDK’s winuser.h file.) As you can see here, I handle only two messages: WM_DRAWCLIPBOARD and WM_CHANGECBCHAIN.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |