diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-06-08 19:31:07 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-06-08 19:31:07 +0000 |
commit | 907dad9f253bf2bb3885e0e125843bdd21f4f928 (patch) | |
tree | 48e4f915f5dafb0bdf7b4d13e113b129ce9bd868 /protocols | |
parent | 48f4b68ffcb66611a4294ed0fd0ac4e49dedb09d (diff) |
added 3 symbols text limit for auth code
git-svn-id: http://svn.miranda-ng.org/main/trunk@4903 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/WhatsApp/src/dialogs.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/protocols/WhatsApp/src/dialogs.cpp b/protocols/WhatsApp/src/dialogs.cpp index bcfd295bcd..6905ca4b87 100644 --- a/protocols/WhatsApp/src/dialogs.cpp +++ b/protocols/WhatsApp/src/dialogs.cpp @@ -1,17 +1,18 @@ #include "common.h"
-INT_PTR CALLBACK WhatsAppAccountProc( HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam )
+INT_PTR CALLBACK WhatsAppAccountProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam)
{
WhatsAppProto *proto;
- switch ( message )
+ switch (message)
{
-
case WM_INITDIALOG:
TranslateDialogDefault(hwnd);
proto = reinterpret_cast<WhatsAppProto*>(lparam);
SetWindowLongPtr(hwnd,GWLP_USERDATA,lparam);
+ SendDlgItemMessage(hwnd, IDC_REG_CODE_1, EM_LIMITTEXT, 3, 0);
+ SendDlgItemMessage(hwnd, IDC_REG_CODE_2, EM_LIMITTEXT, 3, 0);
DBVARIANT dbv;
|