From 2bf82f155a0e98e6ab6c31a01315582f57bc9aa8 Mon Sep 17 00:00:00 2001 From: slotwin Date: Thu, 12 Jun 2014 20:43:30 +0000 Subject: UserInfoEx: rearranged option pages (changed options and icons group name to make it more descriptive, changes some other titles) proper capitalization code cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@9447 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/UserInfoEx/src/psp_base.cpp | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) (limited to 'plugins/UserInfoEx/src/psp_base.cpp') diff --git a/plugins/UserInfoEx/src/psp_base.cpp b/plugins/UserInfoEx/src/psp_base.cpp index 611783f1c2..6ea57ed3b6 100644 --- a/plugins/UserInfoEx/src/psp_base.cpp +++ b/plugins/UserInfoEx/src/psp_base.cpp @@ -21,16 +21,15 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "commonheaders.h" -void UpDate_CountryIcon(HWND hCtrl, int countryID) { +void UpDate_CountryIcon(HWND hCtrl, int countryID) +{ HICON hIcon = LoadFlagIcon(countryID); HICON hOld = Static_SetIcon(hCtrl, hIcon); ShowWindow(hCtrl, hIcon ? SW_SHOW : SW_HIDE); Skin_ReleaseIcon(hOld); } -/** - * Default dialog procedure, which handles common functions - **/ +// Default dialog procedure, which handles common functions INT_PTR CALLBACK PSPBaseProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) { CCtrlList *pCtrlList; @@ -38,20 +37,18 @@ INT_PTR CALLBACK PSPBaseProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) pCtrlList = CCtrlList::GetObj(hDlg); if (PtrIsValid(pCtrlList)) { switch (uMsg) { - case WM_INITDIALOG: return TRUE; + case WM_INITDIALOG: + return TRUE; - /** - * set propertysheet page's background white in aero mode - **/ + // set propertysheet page's background white in aero mode case WM_CTLCOLORSTATIC: - case WM_CTLCOLORDLG: { + case WM_CTLCOLORDLG: + { if (IsAeroMode()) return (INT_PTR)GetStockBrush(WHITE_BRUSH); } break; - /** - * Set text color of edit boxes according to the source of information they display. - **/ + // Set text color of edit boxes according to the source of information they display. case WM_CTLCOLOREDIT: return pCtrlList->OnSetTextColour((HWND)lParam, (HDC)wParam); -- cgit v1.2.3