June 22nd, 2009, 04:40 AM
WM_CUT & WM_PASTE Messages in Dialog Box
I have a CDialog derived class that contains a number of Edit controls. Dialog is modal.
I want to capture the WM_CUT, WM_CLEAR, WM_PASTE Messages to anyone of the edit controls and apply a common routine before these messages are dispatched to their owners.
I was puzzled a lot with the ON_NOTIFY_RANGE etc. but without any success.
I use already the PresTranslateMessage function to capture keyborad events, but this does not work for the CUT,PASTE,CLEAR messages.
Is there any easy way to do this? A sample code would be very usefull.
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!