17#ifndef LIEF_PE_RESOURCE_DIALOG_ITEM_H
18#define LIEF_PE_RESOURCE_DIALOG_ITEM_H
31class ResourcesManager;
32struct ResourcesParser;
35struct pe_dialog_item_template_ext;
36struct pe_dialog_item_template;
43 friend struct ResourcesParser;
99 const std::u16string&
title()
const;
107 bool is_extended_ =
true;
108 uint32_t help_id_ = 0;
109 uint32_t ext_style_ = 0;
118 std::u16string window_class_;
119 std::u16string title_;
121 uint16_t extra_count_ = 0;
This class represents an item in the ResourceDialog.
Definition ResourceDialogItem.hpp:40
friend std::ostream & operator<<(std::ostream &os, const ResourceDialogItem &dialog_item)
bool has_style(WINDOW_STYLES style) const
uint32_t id() const
The control identifier.
ResourceDialogItem(const ResourceDialogItem &)
ResourceDialogItem & operator=(const ResourceDialogItem &)
std::set< EXTENDED_WINDOW_STYLES > extended_style_list() const
List of PE::EXTENDED_WINDOW_STYLES associated with the ResourceDialogItem::extended_style value.
int16_t cy() const
The height, in dialog box units, of the control.
std::set< WINDOW_STYLES > style_list() const
int16_t y() const
The y-coordinate, in dialog box units, of the upper-left corner of the control. This coordinate is al...
bool is_extended() const
True if the control is an extended one
void accept(Visitor &visitor) const override
uint32_t style() const
The style of the control.
ResourceDialogItem(const details::pe_dialog_item_template_ext &header)
int16_t cx() const
The width, in dialog box units, of the control.
int16_t x() const
The x-coordinate, in dialog box units, of the upper-left corner of the control. This coordinate is al...
ResourceDialogItem(const details::pe_dialog_item_template &header)
uint32_t extended_style() const
The extended styles for a window.
const std::u16string & title() const
Initial text of the control.
~ResourceDialogItem() override
uint32_t help_id() const
The help context identifier for the control.
bool has_extended_style(EXTENDED_WINDOW_STYLES style) const
Check if the DialogItem has the given PE::EXTENDED_WINDOW_STYLES.
The Resource Manager provides an enhanced API to manipulate the resource tree.
Definition ResourcesManager.hpp:38
Definition Visitor.hpp:224
EXTENDED_WINDOW_STYLES
From https://docs.microsoft.com/en-us/windows/win32/winmsg/extended-window-styles.
Definition PE/enums.hpp:204
WINDOW_STYLES
From: https://docs.microsoft.com/en-us/windows/win32/winmsg/window-styles.
Definition PE/enums.hpp:229
LIEF namespace.
Definition Abstract/Binary.hpp:32
#define LIEF_API
Definition visibility.h:41