diff options
author | Robert Pösel <robyer@seznam.cz> | 2014-11-28 20:39:37 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2014-11-28 20:39:37 +0000 |
commit | 92beff959051eec8d60e4e146aa3d8a13bee9fea (patch) | |
tree | b06ceb3079028d38f6d0f2481a5ab62b05e83e80 /protocols/Xfire/src/setnickname.cpp | |
parent | 8ef64da1b7cc3ef5026ab2dc80e7e0fd88971d59 (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/setnickname.cpp')
-rw-r--r-- | protocols/Xfire/src/setnickname.cpp | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/protocols/Xfire/src/setnickname.cpp b/protocols/Xfire/src/setnickname.cpp index d401959fd0..96e69c6276 100644 --- a/protocols/Xfire/src/setnickname.cpp +++ b/protocols/Xfire/src/setnickname.cpp @@ -7,40 +7,40 @@ INT_PTR CALLBACK DlgNickProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPara {
switch (msg)
{
- case WM_INITDIALOG:
- {
- TranslateDialogDefault(hwndDlg);
- SendMessage(hwndDlg,WM_SETICON, (WPARAM)false, (LPARAM)LoadIcon(hinstance, MAKEINTRESOURCE(IDI_TM)));
+ case WM_INITDIALOG:
+ {
+ TranslateDialogDefault(hwndDlg);
+ SendMessage(hwndDlg, WM_SETICON, (WPARAM)false, (LPARAM)LoadIcon(hinstance, MAKEINTRESOURCE(IDI_TM)));
- DBVARIANT dbv;
- if (!db_get(NULL,protocolname,"Nick",&dbv)) {
- SetDlgItemTextA(hwndDlg,IDC_NICKNAME,dbv.pszVal);
- db_free(&dbv);
- }
- return TRUE;
+ DBVARIANT dbv;
+ if (!db_get(NULL, protocolname, "Nick", &dbv)) {
+ SetDlgItemTextA(hwndDlg, IDC_NICKNAME, dbv.pszVal);
+ db_free(&dbv);
}
- case WM_COMMAND:
+ return TRUE;
+ }
+ case WM_COMMAND:
+ {
+ if (LOWORD(wParam) == IDOK)
{
- if (LOWORD(wParam) == IDOK)
- {
- char nick[255];
- GetDlgItemTextA(hwndDlg,IDC_NICKNAME,nick,sizeof(nick));
+ char nick[255];
+ GetDlgItemTextA(hwndDlg, IDC_NICKNAME, nick, sizeof(nick));
- CallService(XFIRE_SET_NICK,0,(LPARAM)nick);
+ CallService(XFIRE_SET_NICK, 0, (LPARAM)nick);
- EndDialog(hwndDlg,TRUE);
- return TRUE;
- }
- else if (LOWORD(wParam) == IDCANCEL)
- {
- EndDialog(hwndDlg,FALSE);
- return FALSE;
- }
+ EndDialog(hwndDlg, TRUE);
+ return TRUE;
+ }
+ else if (LOWORD(wParam) == IDCANCEL)
+ {
+ EndDialog(hwndDlg, FALSE);
+ return FALSE;
}
}
+ }
return FALSE;
}
BOOL ShowSetNick() {
- return DialogBox(hinstance,MAKEINTRESOURCE(IDD_SETNICKNAME),NULL,DlgNickProc);
+ return DialogBox(hinstance, MAKEINTRESOURCE(IDD_SETNICKNAME), NULL, DlgNickProc);
}
\ No newline at end of file |