17#ifndef LIEF_PE_RESOURCE_DIALOG_H
18#define LIEF_PE_RESOURCE_DIALOG_H
23#include "LIEF/visibility.h"
24#include "LIEF/Object.hpp"
25#include "LIEF/iterators.hpp"
27#include "LIEF/PE/enums.hpp"
28#include "LIEF/PE/resources/ResourceDialogItem.hpp"
32class ResourcesManager;
33struct ResourcesParser;
36struct pe_dialog_template_ext;
37struct pe_dialog_template;
50 friend struct ResourcesParser;
53 using items_t = std::vector<ResourceDialogItem>;
113 void lang(uint32_t lang);
114 void sub_lang(uint32_t sub_lang);
147 const std::u16string&
title()
const;
152 void accept(
Visitor& visitor)
const override;
155 LIEF_API
friend std::ostream& operator<<(std::ostream& os,
const ResourceDialog& dialog);
169 std::u16string menu_;
170 std::u16string window_class_;
171 std::u16string title_;
173 uint16_t point_size_;
177 std::u16string typeface_;
Representation of a dialog box.
Definition ResourceDialog.hpp:47
bool is_italic() const
Indicates whether the font is italic. If this value is true, the font is italic.
uint32_t sub_lang() const
RESOURCE_SUBLANGS associated with the Dialog.
uint32_t help_id() const
The help context identifier for the dialog box window.
const std::u16string & typeface() const
The name of the typeface for the font.
uint16_t signature() const
Indicates whether a template is an extended dialog box template:
int16_t cx() const
The width, in dialog box units, of the dialog box.
uint32_t style() const
The style of the dialog box. This member can be a combination of LIEF::PE::WINDOW_STYLES values and L...
bool is_extended() const
true if the dialog is an extended one
uint32_t extended_style() const
The extended windows styles.
it_const_items items() const
Iterator on the controls (ResourceDialogItem) that defines the Dialog (Button, Label....
uint16_t version() const
The version number of the extended dialog box template. This member must be set to 1.
int16_t x() const
The x-coordinate, in dialog box units, of the upper-left corner of the dialog box.
uint16_t point_size() const
The point size of the font to use for the text in the dialog box and its controls.
int16_t y() const
The y-coordinate, in dialog box units, of the upper-left corner of the dialog box.
std::set< DIALOG_BOX_STYLES > dialogbox_style_list() const
Return list of LIEF::PE::DIALOG_BOX_STYLES associated with the ResourceDialog::style value.
int16_t cy() const
The height, in dialog box units, of the dialog box.
uint16_t weight() const
The weight of the font.
std::set< EXTENDED_WINDOW_STYLES > extended_style_list() const
Return list of LIEF::PE::EXTENDED_WINDOW_STYLES associated with the ResourceDialog::extended_style va...
uint8_t charset() const
The character to be used.
const std::u16string & title() const
The title of the dialog box.
std::set< WINDOW_STYLES > style_list() const
Return list of LIEF::PE::WINDOW_STYLES associated with the ResourceDialog::style value.
uint32_t lang() const
RESOURCE_LANGS associated with the Dialog.
The Resource Manager provides an enhanced API to manipulate the resource tree.
Definition ResourcesManager.hpp:38
Definition Visitor.hpp:219
Iterator which returns reference on container's values.
Definition iterators.hpp:48
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
DIALOG_BOX_STYLES
From https://docs.microsoft.com/en-us/windows/win32/dlgbox/dialog-box-styles.
Definition PE/enums.hpp:255
LIEF namespace.
Definition Abstract/Binary.hpp:32