Ocean
Loading...
Searching...
No Matches
ToolTip.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8#ifndef META_OCEAN_PLATFORM_WIN_TOOL_TIP_H
9#define META_OCEAN_PLATFORM_WIN_TOOL_TIP_H
10
12
13namespace Ocean
14{
15
16namespace Platform
17{
18
19namespace Win
20{
21
22/**
23 * This class implements tool tip functionalities.
24 */
25class OCEAN_PLATFORM_WIN_EXPORT ToolTip
26{
27 public:
28
29 /**
30 * Adds a new tool tip to a window.
31 * @param handle The handle of the window to which the tool tip will be added, must be valid
32 * @param text The text of the tool tip
33 * @return True, if succeeded
34 */
35 static bool addToolTip(const HWND handle, const std::wstring& text);
36};
37
38}
39
40}
41
42}
43
44#endif // META_OCEAN_PLATFORM_WIN_TOOL_TIP_H
This class implements tool tip functionalities.
Definition ToolTip.h:26
static bool addToolTip(const HWND handle, const std::wstring &text)
Adds a new tool tip to a window.
The namespace covering the entire Ocean framework.
Definition Accessor.h:15