diff options
author | garykac@google.com <garykac@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-29 16:03:24 +0000 |
---|---|---|
committer | garykac@google.com <garykac@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-29 16:03:24 +0000 |
commit | a5c6d9eceb36926258a54852676da472bb9fb903 (patch) | |
tree | 100454625dc98eb86fbc112c8fcf76bd880e6b3b /remoting | |
parent | fa69a9a9697040658165dc47cd74e229277ca8a3 (diff) | |
download | chromium_src-a5c6d9eceb36926258a54852676da472bb9fb903.zip chromium_src-a5c6d9eceb36926258a54852676da472bb9fb903.tar.gz chromium_src-a5c6d9eceb36926258a54852676da472bb9fb903.tar.bz2 |
Use shared UI strings for Chromoting's Disconnect window (in Windows).
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/7277025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90961 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting')
-rw-r--r-- | remoting/host/disconnect_window_win.cc | 14 | ||||
-rw-r--r-- | remoting/host/plugin/host_plugin.rc | 6 |
2 files changed, 17 insertions, 3 deletions
diff --git a/remoting/host/disconnect_window_win.cc b/remoting/host/disconnect_window_win.cc index 6c42119..5cbc44d 100644 --- a/remoting/host/disconnect_window_win.cc +++ b/remoting/host/disconnect_window_win.cc @@ -82,6 +82,20 @@ BOOL DisconnectWindowWin::OnDialogMessage(HWND hwnd, UINT msg, switch (msg) { case WM_INITDIALOG: { + // Update UI string placeholders with actual strings. + std::wstring w_title = UTF8ToWide(kTitle); + SetWindowText(hwnd, w_title.c_str()); + + HWND hwndButton = GetDlgItem(hwnd, IDC_DISCONNECT); + CHECK(hwndButton); + std::wstring w_button = UTF8ToWide(kDisconnectButton); + SetWindowText(hwndButton, w_button.c_str()); + + HWND hwndSharingWith = GetDlgItem(hwnd, IDC_DISCONNECT_SHARINGWITH); + CHECK(hwndSharingWith); + std::wstring w_sharing = UTF8ToWide(kSharingWith); + SetWindowText(hwndSharingWith, w_sharing.c_str()); + // Update username in dialog. HWND hwndUsername = GetDlgItem(hwnd, IDC_DISCONNECT_USERNAME); CHECK(hwndUsername); diff --git a/remoting/host/plugin/host_plugin.rc b/remoting/host/plugin/host_plugin.rc index 74787a1..ca17d81 100644 --- a/remoting/host/plugin/host_plugin.rc +++ b/remoting/host/plugin/host_plugin.rc @@ -94,11 +94,11 @@ END IDD_DISCONNECT DIALOGEX 0, 0, 166, 59
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION
EXSTYLE WS_EX_TOPMOST
-CAPTION "Remoting"
+CAPTION "kTitle"
FONT 9, "Microsoft Sans Serif", 400, 0, 0x0
BEGIN
- DEFPUSHBUTTON "Disconnect",IDC_DISCONNECT,56,38,50,14
- LTEXT "Sharing with:",IDC_DISCONNECT_SHARINGWITH,7,17,46,8
+ DEFPUSHBUTTON "kDisconnectButton",IDC_DISCONNECT,56,38,50,14
+ LTEXT "kSharingWith",IDC_DISCONNECT_SHARINGWITH,7,17,46,8
LTEXT "<username>",IDC_DISCONNECT_USERNAME,51,17,108,8
END
|