GUIFramework
1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
DropDownMenuItem.cpp
Go to the documentation of this file.
1
#include "
DropDownMenuItem.h
"
2
3
using namespace
std;
4
5
namespace
gui_framework
6
{
7
DropDownMenuItem::DropDownMenuItem
(
const
wstring& text, HMENU popupMenuHandle) :
8
IMenuItem
9
(
10
text,
11
standard_menu_items::dropDownMenuItem
12
),
13
popupMenuHandle(popupMenuHandle)
14
{
15
16
}
17
18
void
DropDownMenuItem::processMessage
()
19
{
20
21
}
22
23
tuple<uint32_t, uint64_t>
DropDownMenuItem::getCreationData
()
const
24
{
25
return
make_tuple(
static_cast<
uint32_t
>
(MF_POPUP),
reinterpret_cast<
uint64_t
>
(
popupMenuHandle
));
26
}
27
28
json::JSONBuilder
DropDownMenuItem::getStructure
()
const
29
{
30
json::JSONBuilder builder = IMenuItem::getStructure();
31
32
builder.append(
"popupId"
s,
reinterpret_cast<
uint64_t
>
(
popupMenuHandle
));
33
34
return
builder;
35
}
36
}
DropDownMenuItem.h
gui_framework::DropDownMenuItem::getCreationData
virtual std::tuple< uint32_t, uint64_t > getCreationData() const final override
Definition
DropDownMenuItem.cpp:23
gui_framework::DropDownMenuItem::processMessage
virtual void processMessage() final
Definition
DropDownMenuItem.cpp:18
gui_framework::DropDownMenuItem::getStructure
virtual json::JSONBuilder getStructure() const final override
Definition
DropDownMenuItem.cpp:28
gui_framework::DropDownMenuItem::popupMenuHandle
HMENU popupMenuHandle
Definition
DropDownMenuItem.h:11
gui_framework::DropDownMenuItem::DropDownMenuItem
DropDownMenuItem(const std::wstring &text, HMENU popupMenuHandle)
Definition
DropDownMenuItem.cpp:7
gui_framework
Definition
BaseComponent.cpp:21
GUIFramework
src
MenuItems
DropDownMenuItem.cpp
Generated by
1.12.0