summaryrefslogtreecommitdiff
path: root/protocols/Xfire/src/passworddialog.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2014-11-28 20:39:37 +0000
committerRobert Pösel <robyer@seznam.cz>2014-11-28 20:39:37 +0000
commit92beff959051eec8d60e4e146aa3d8a13bee9fea (patch)
treeb06ceb3079028d38f6d0f2481a5ab62b05e83e80 /protocols/Xfire/src/passworddialog.cpp
parent8ef64da1b7cc3ef5026ab2dc80e7e0fd88971d59 (diff)
XFire: Reformat sources
git-svn-id: http://svn.miranda-ng.org/main/trunk@11134 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Xfire/src/passworddialog.cpp')
-rw-r--r--protocols/Xfire/src/passworddialog.cpp66
1 files changed, 33 insertions, 33 deletions
diff --git a/protocols/Xfire/src/passworddialog.cpp b/protocols/Xfire/src/passworddialog.cpp
index 3141f82962..c395f3f630 100644
--- a/protocols/Xfire/src/passworddialog.cpp
+++ b/protocols/Xfire/src/passworddialog.cpp
@@ -4,56 +4,56 @@
#include "passworddialog.h"
static char nick[255];
-BOOL usenick=FALSE;
+BOOL usenick = FALSE;
INT_PTR CALLBACK DlgPWProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam)
{
static char* pw[255];
switch (msg)
{
- case WM_CLOSE:
- {
- GetDlgItemTextA(hwndDlg,IDC_PWSTRING,(LPSTR)pw,254);
- if (usenick)
- GetDlgItemTextA(hwndDlg,IDC_PWNICK,(LPSTR)nick,254);
- EndDialog(hwndDlg,(INT_PTR)pw);
- break;
- }
- case WM_INITDIALOG:
- {
- TranslateDialogDefault(hwndDlg);
- //passwort und nick leeren
- pw[0]=0;
- nick[0]=0;
- SendMessage(hwndDlg,WM_SETICON, (WPARAM)false, (LPARAM)LoadIcon(hinstance, MAKEINTRESOURCE(IDI_TM)));
- if (!usenick)
- EnableWindow(GetDlgItem(hwndDlg,IDC_PWNICK),FALSE);
+ case WM_CLOSE:
+ {
+ GetDlgItemTextA(hwndDlg, IDC_PWSTRING, (LPSTR)pw, 254);
+ if (usenick)
+ GetDlgItemTextA(hwndDlg, IDC_PWNICK, (LPSTR)nick, 254);
+ EndDialog(hwndDlg, (INT_PTR)pw);
+ break;
+ }
+ case WM_INITDIALOG:
+ {
+ TranslateDialogDefault(hwndDlg);
+ //passwort und nick leeren
+ pw[0] = 0;
+ nick[0] = 0;
+ SendMessage(hwndDlg, WM_SETICON, (WPARAM)false, (LPARAM)LoadIcon(hinstance, MAKEINTRESOURCE(IDI_TM)));
+ if (!usenick)
+ EnableWindow(GetDlgItem(hwndDlg, IDC_PWNICK), FALSE);
- return TRUE;
- }
- case WM_COMMAND:
- {
- if (LOWORD(wParam) == IDC_BTN4) {
- SendMessage(hwndDlg,WM_CLOSE,0,0);
- }
- break;
+ return TRUE;
+ }
+ case WM_COMMAND:
+ {
+ if (LOWORD(wParam) == IDC_BTN4) {
+ SendMessage(hwndDlg, WM_CLOSE, 0, 0);
}
+ break;
+ }
}
return FALSE;
}
-void ShowPasswordDialog(char*pw,char*mynick) {
- if (mynick!=NULL)
+void ShowPasswordDialog(char*pw, char*mynick) {
+ if (mynick != NULL)
{
- usenick=TRUE;
+ usenick = TRUE;
}
else
- usenick=FALSE;
+ usenick = FALSE;
- char* npw = (char*)DialogBox(hinstance,MAKEINTRESOURCE(IDD_PWDLG),NULL,DlgPWProc);
- strcpy(pw,npw);
+ char* npw = (char*)DialogBox(hinstance, MAKEINTRESOURCE(IDD_PWDLG), NULL, DlgPWProc);
+ strcpy(pw, npw);
if (mynick)
{
- strcpy(mynick,(char*)nick);
+ strcpy(mynick, (char*)nick);
}
} \ No newline at end of file