2012-04-03 03:34:16 +02:00
|
|
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
#include <Objbase.h>
|
2017-05-17 11:29:28 +02:00
|
|
|
#include <commctrl.h>
|
|
|
|
#include <windows.h>
|
2012-04-03 03:34:16 +02:00
|
|
|
|
2020-06-28 20:29:44 +02:00
|
|
|
#include "libcef/browser/alloy/alloy_browser_main.h"
|
2012-04-03 03:34:16 +02:00
|
|
|
|
2018-04-19 17:44:42 +02:00
|
|
|
#include "base/logging.h"
|
2015-06-12 00:08:33 +02:00
|
|
|
|
2020-06-28 20:29:44 +02:00
|
|
|
void AlloyBrowserMainParts::PlatformInitialize() {
|
2012-04-03 03:34:16 +02:00
|
|
|
HRESULT res;
|
|
|
|
|
|
|
|
// Initialize common controls.
|
2020-01-15 14:36:24 +01:00
|
|
|
res = CoInitialize(nullptr);
|
2012-04-03 03:34:16 +02:00
|
|
|
DCHECK(SUCCEEDED(res));
|
|
|
|
INITCOMMONCONTROLSEX InitCtrlEx;
|
|
|
|
InitCtrlEx.dwSize = sizeof(INITCOMMONCONTROLSEX);
|
2017-05-17 11:29:28 +02:00
|
|
|
InitCtrlEx.dwICC = ICC_STANDARD_CLASSES;
|
2012-04-03 03:34:16 +02:00
|
|
|
InitCommonControlsEx(&InitCtrlEx);
|
|
|
|
|
|
|
|
// Start COM stuff.
|
2020-01-15 14:36:24 +01:00
|
|
|
res = OleInitialize(nullptr);
|
2012-04-03 03:34:16 +02:00
|
|
|
DCHECK(SUCCEEDED(res));
|
|
|
|
}
|