diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-07-22 21:19:49 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-07-22 21:19:49 +0000 |
commit | 89f03e95a0bea90f714958cd6fe1073ee0644d0c (patch) | |
tree | f6f6d9a799456d27b684d5dfb8ca4c2174b34187 /src | |
parent | 4d890c3d0bbf19397cd1c2adedf5336f339ef883 (diff) |
Added user name into headerbar
git-svn-id: http://svn.miranda-ng.org/main/trunk@14640 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r-- | src/core/stduserinfo/res/resource.rc | 2 | ||||
-rw-r--r-- | src/core/stduserinfo/src/userinfo.cpp | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/core/stduserinfo/res/resource.rc b/src/core/stduserinfo/res/resource.rc index c91b0a1c03..b3ec51fe10 100644 --- a/src/core/stduserinfo/res/resource.rc +++ b/src/core/stduserinfo/res/resource.rc @@ -66,7 +66,7 @@ EXSTYLE WS_EX_CONTROLPARENT CAPTION "%s: user details"
FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
- CONTROL "View personal user details and more",IDC_HEADERBAR,
+ CONTROL "View personal user details and more of\n%s",IDC_HEADERBAR,
"MHeaderbarCtrl",0x0,0,0,318,25
CONTROL "",IDC_PAGETREE,"SysTreeView32",TVS_DISABLEDRAGDROP | TVS_SHOWSELALWAYS | TVS_NOTOOLTIPS | TVS_TRACKSELECT | TVS_FULLROWSELECT | TVS_NONEVENHEIGHT | WS_HSCROLL | WS_TABSTOP,3,30,76,176,WS_EX_STATICEDGE
CONTROL "Tab1",IDC_TABS,"SysTabControl32",TCS_HOTTRACK | TCS_MULTILINE | WS_TABSTOP,85,29,228,158
diff --git a/src/core/stduserinfo/src/userinfo.cpp b/src/core/stduserinfo/src/userinfo.cpp index 40cbe871ef..1ad3af605b 100644 --- a/src/core/stduserinfo/src/userinfo.cpp +++ b/src/core/stduserinfo/src/userinfo.cpp @@ -258,6 +258,10 @@ static INT_PTR CALLBACK DlgProcDetails(HWND hwndDlg, UINT msg, WPARAM wParam, LP mir_sntprintf(newTitle, _countof(newTitle), oldTitle, name);
SetWindowText(hwndDlg, newTitle);
+ GetDlgItemText(hwndDlg, IDC_HEADERBAR, oldTitle, _countof(oldTitle));
+ mir_sntprintf(newTitle, _countof(newTitle), oldTitle, name);
+ SetDlgItemText(hwndDlg, IDC_HEADERBAR, newTitle);
+
//////////////////////////////////////////////////////////////////////
LOGFONT lf;
HFONT hNormalFont = (HFONT)SendDlgItemMessage(hwndDlg, IDC_NAME, WM_GETFONT, 0, 0);
|