|
From: Fernando Rodriguez on 1 Jul 2008 11:53 Hi, How can I disable the copy and paste options in a textbox (and combobox) standard popup menu? Thanks!
From: Sten Westerback (MVP SDK 2005-6 :) on 1 Jul 2008 12:24 "Fernando Rodriguez" <fernandoREMOVE_THIS(a)easyjob.net> wrote in message news:a33bd845fef98caa9ba798b97fe(a)nntp.aioe.org... > > Hi, > > How can I disable the copy and paste options in a textbox (and combobox) > standard popup menu? Subclassing and catching the appropriate messages. - Sten
From: Kellie Fitton on 1 Jul 2008 14:25 On Jul 1, 8:53 am, Fernando Rodriguez <fernandoREMOVE_T...(a)easyjob.net> wrote: > Hi, > > How can I disable the copy and paste options in a textbox (and combobox) > standard popup menu? > > Thanks! Hi, You can handle the following Windows messages and return FALSE to prevent copy/paste from or to the clipboard: WM_COPY WM_PASTE You can handle the following Windows messages and handle the mouse's context menu accordingly. WM_RBUTTONDOWN WM_CONTEXTMENU You can handle the notification message EN_UPDATE and then send the message EM_UNDO to reverse the last edit control operation, or just restore the previous data if you have saved it somewhere in memory. http://msdn.microsoft.com/en-us/library/ms649022(VS.85).aspx http://msdn2.microsoft.com/en-US/library/ms649028.aspx http://msdn2.microsoft.com/en-us/library/ms646242.aspx http://msdn2.microsoft.com/en-us/library/ms647592.aspx http://msdn2.microsoft.com/en-us/library/ms672117.aspx http://msdn2.microsoft.com/en-us/library/ms672107.aspx Kellie.
|
Pages: 1 Prev: Enable printer sharing in windows XP Next: changing TS session in thread |