Go to the documentation of this file.
17#ifndef LIEF_PE_RESOURCE_DIALOG_ITEM_H
18#define LIEF_PE_RESOURCE_DIALOG_ITEM_H
32struct ResourcesParser;
35struct pe_dialog_item_template_ext;
36struct pe_dialog_item_template;
42 friend class ResourcesManager;
43 friend struct ResourcesParser;
51 ResourceDialogItem&
operator=(
const ResourceDialogItem&);
67 uint32_t
style()
const;
97 const std::u16string&
title()
const;
101 void accept(Visitor& visitor)
const override;
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 CodeIntegrity.hpp:26
Namespace related to the LIEF's PE module.
Definition Abstract/Header.hpp:32
LIEF namespace.
Definition Abstract/Binary.hpp:36
#define LIEF_API
Definition visibility.h:41