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
|
|
|
|
|
|
|
#include "libcef/browser/browser_main.h"
|
|
|
|
|
2018-04-19 17:44:42 +02:00
|
|
|
#include "base/logging.h"
|
2015-06-12 00:08:33 +02:00
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
void CefBrowserMainParts::PlatformInitialize() {
|
|
|
|
HRESULT res;
|
|
|
|
|
|
|
|
// Initialize common controls.
|
|
|
|
res = CoInitialize(NULL);
|
|
|
|
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.
|
|
|
|
res = OleInitialize(NULL);
|
|
|
|
DCHECK(SUCCEEDED(res));
|
|
|
|
}
|