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 |
* |
* |
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> |
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 |
|
|
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 |
} |
} |
|
|
|
|
|
|