summaryrefslogtreecommitdiffstats
path: root/remoting/host/elevated_controller_module_win.cc
diff options
context:
space:
mode:
authoralexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-01 21:48:49 +0000
committeralexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-01 21:48:49 +0000
commit107d6e00cece1fb1545f5403193576f822e93a09 (patch)
treeb4e970120ea4080edb92f1d3019d8e24957c1646 /remoting/host/elevated_controller_module_win.cc
parentab55011884f881bc1bf119507fbfafddfce56ed9 (diff)
downloadchromium_src-107d6e00cece1fb1545f5403193576f822e93a09.zip
chromium_src-107d6e00cece1fb1545f5403193576f822e93a09.tar.gz
chromium_src-107d6e00cece1fb1545f5403193576f822e93a09.tar.bz2
Using Vista common controls library to show pretty controls in the PIN confirmation dialog.
Review URL: https://chromiumcodereview.appspot.com/10270034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134790 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/elevated_controller_module_win.cc')
-rw-r--r--remoting/host/elevated_controller_module_win.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/remoting/host/elevated_controller_module_win.cc b/remoting/host/elevated_controller_module_win.cc
index f4cc407..6f7c8a2 100644
--- a/remoting/host/elevated_controller_module_win.cc
+++ b/remoting/host/elevated_controller_module_win.cc
@@ -31,6 +31,12 @@ remoting::ElevatedControllerModuleWin _AtlModule;
int WINAPI WinMain(HINSTANCE instance, HINSTANCE, LPSTR, int command) {
CommandLine::Init(0, NULL);
+ // Register and initialize common controls.
+ INITCOMMONCONTROLSEX info;
+ info.dwSize = sizeof(info);
+ info.dwICC = ICC_STANDARD_CLASSES;
+ InitCommonControlsEx(&info);
+
// This object instance is required by Chrome code (for example,
// FilePath, LazyInstance, MessageLoop).
base::AtExitManager exit_manager;