summaryrefslogtreecommitdiff
path: root/chromium/ui/base/resource/resource_bundle_win.h
blob: a48174814160f22ad2b6c84e94fc76f793ed3e98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// 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.

#ifndef UI_BASE_RESOURCE_RESOURCE_BUNDLE_WIN_H_
#define UI_BASE_RESOURCE_RESOURCE_BUNDLE_WIN_H_

#include "build/build_config.h"

#include "base/component_export.h"
#include "base/win/windows_types.h"

namespace ui {

// NOTE: This needs to be called before initializing ResourceBundle if your
// resources are not stored in the executable.
COMPONENT_EXPORT(UI_BASE) void SetResourcesDataDLL(HINSTANCE handle);

// Loads and returns an icon from the app module.
COMPONENT_EXPORT(UI_BASE) HICON LoadThemeIconFromResourcesDataDLL(int icon_id);

// Loads and returns a cursor from the app module.
COMPONENT_EXPORT(UI_BASE)
HCURSOR LoadCursorFromResourcesDataDLL(const wchar_t* cursor_id);

}  // namespace ui

#endif  // UI_BASE_RESOURCE_RESOURCE_BUNDLE_WIN_H_