/[winpt]/trunk/Src/wptSafeEditCtrl.cpp
ViewVC logotype

Diff of /trunk/Src/wptSafeEditCtrl.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 327 by twoaday, Sun Nov 5 08:57:45 2006 UTC revision 328 by twoaday, Fri Sep 25 16:07:38 2009 UTC
# Line 1  Line 1 
1  /* wptSafeEditCtrl.cpp - Safe edit control for passwords  /* wptSafeEditCtrl.cpp - Safe edit control for passwords
2   *      Copyright (C) 2006 Timo Schulz, g10 Code GmbH   *      Copyright (C) 2006, 2009 Timo Schulz
3     *      Copyright (C) 2006 g10 Code GmbH
4   *   *
5   * This file is part of WinPT.   * This file is part of WinPT.
6   *   *
# Line 12  Line 13 
13   * but WITHOUT ANY WARRANTY; without even the implied warranty of   * but WITHOUT ANY WARRANTY; without even the implied warranty of
14   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15   * GNU General Public License for more details.   * GNU General Public License for more details.
  *  
  * You should have received a copy of the GNU General Public License  
  * along with WinPT; if not, write to the Free Software Foundation,  
  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA  
16   */   */
17  #ifdef HAVE_CONFIG_H  #ifdef HAVE_CONFIG_H
18  #include <config.h>  #include <config.h>
# Line 108  safe_edit_dlg_proc (HWND hwnd, UINT msg, Line 105  safe_edit_dlg_proc (HWND hwnd, UINT msg,
105      switch (msg) {      switch (msg) {
106      case WM_CUT:      case WM_CUT:
107      case WM_COPY:      case WM_COPY:
108      case WM_PASTE:         // TS: a lot of user asked if we could not allow pasting again.
109        //case WM_PASTE:
110          /* do not allow to copy or paste the inserted text. */          /* do not allow to copy or paste the inserted text. */
111          return TRUE;          return TRUE;
112    
# Line 250  SafeGetDlgItemText (HWND dlg, int id, ch Line 248  SafeGetDlgItemText (HWND dlg, int id, ch
248      SendDlgItemMessage (dlg, id, WM_SAFE_GETTEXT, (WPARAM)buf, (LPARAM)buflen);      SendDlgItemMessage (dlg, id, WM_SAFE_GETTEXT, (WPARAM)buf, (LPARAM)buflen);
249      return strlen (buf);      return strlen (buf);
250  }  }
   
   

Legend:
Removed from v.327  
changed lines
  Added in v.328

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26