LIEF: Library to Instrument Executable Formats Version 0.17.0
Loading...
Searching...
No Matches
LIEF::PE::ResourceDialogExtended::Item Class Reference

This class represents a DLGTEMPLATEEX item (DLGITEMTEMPLATEEX). More...

#include <ResourceDialogExtended.hpp>

Inheritance diagram for LIEF::PE::ResourceDialogExtended::Item:
Collaboration diagram for LIEF::PE::ResourceDialogExtended::Item:

Public Member Functions

 Item ()=default
 
 Item (const Item &)=default
 
Itemoperator= (const Item &)=default
 
 Item (Item &&)=default
 
Itemoperator= (Item &&)=default
 
std::string to_string () const override
 
uint32_t help_id () const
 The help context identifier for the control. When the system sends a WM_HELP message, it passes the helpID value in the dwContextId member of the HELPINFO structure.
 
Itemhelp_id (uint32_t value)
 
 ~Item () override=default
 
- Public Member Functions inherited from LIEF::PE::ResourceDialog::Item
 Item ()=default
 
 Item (const Item &)=default
 
Itemoperator= (const Item &)=default
 
 Item (Item &&)=default
 
Itemoperator= (Item &&)=default
 
uint32_t style () const
 The style of the control. This can be a combination of WINDOW_STYLES or CONTROL_STYLES.
 
uint32_t extended_style () const
 The extended styles for a window. This member is not used to create controls in dialog boxes, but applications that use dialog box templates can use it to create other types of windows.
 
int32_t id () const
 The control identifier.
 
bool has (WINDOW_STYLES style) const
 Check if this item has the given WINDOW_STYLES.
 
bool has (CONTROL_STYLES style) const
 Check if this item has the given CONTROL_STYLES.
 
std::vector< WINDOW_STYLESwindow_styles () const
 List of WINDOW_STYLES used by this item.
 
std::vector< CONTROL_STYLEScontrol_styles () const
 List of CONTROL_STYLES used by this item.
 
int16_t x () const
 The x-coordinate, in dialog box units, of the upper-left corner of the control. This coordinate is always relative to the upper-left corner of the dialog box's client area.
 
int16_t y () const
 The y-coordinate, in dialog box units, of the upper-left corner of the control. This coordinate is always relative to the upper-left corner of the dialog box's client area.
 
int16_t cx () const
 The width, in dialog box units, of the control.
 
int16_t cy () const
 The height, in dialog box units, of the control.
 
Itemstyle (uint32_t value)
 
Itemextended_style (uint32_t value)
 
Itemx (int16_t value)
 
Itemy (int16_t value)
 
Itemcx (int16_t value)
 
Itemcy (int16_t value)
 
Itemid (int32_t value)
 
Itemdata (std::vector< uint8_t > creation_data)
 
Itemclazz (std::u16string title)
 
Itemclazz (uint16_t ord)
 
Itemtitle (std::u16string value)
 
Itemtitle (uint16_t ord)
 
const ordinal_or_str_tclazz () const
 Window class of the control. This can be either: a string that specifies the name of a registered window class or an ordinal value of a predefined system class.
 
const ordinal_or_str_ttitle () const
 Title of the item which can be either: a string that specifies the initial text or an ordinal value of a resource, such as an icon, in an executable file.
 
span< const uint8_t > creation_data () const
 Creation data that is passed to the control's window procedure.
 
span< uint8_t > creation_data ()
 

Static Public Member Functions

static result< Itemparse (BinaryStream &stream)
 

Additional Inherited Members

- Public Types inherited from LIEF::PE::ResourceDialog::Item
enum class  WINDOW_CLASS : uint32_t {
  BUTTON = 0x0080 , EDIT = 0x0081 , STATIC = 0x0082 , LIST_BOX = 0x0083 ,
  SCROLL_BAR = 0x0084 , COMBO_BOX = 0x0085
}
 

Detailed Description

This class represents a DLGTEMPLATEEX item (DLGITEMTEMPLATEEX).

See: https://learn.microsoft.com/en-us/windows/win32/dlgbox/dlgitemtemplateex

Constructor & Destructor Documentation

◆ Item() [1/3]

LIEF::PE::ResourceDialogExtended::Item::Item ( )
default

◆ Item() [2/3]

LIEF::PE::ResourceDialogExtended::Item::Item ( const Item & )
default

◆ Item() [3/3]

LIEF::PE::ResourceDialogExtended::Item::Item ( Item && )
default

◆ ~Item()

LIEF::PE::ResourceDialogExtended::Item::~Item ( )
overridevirtualdefault

Reimplemented from LIEF::PE::ResourceDialog::Item.

Member Function Documentation

◆ help_id() [1/2]

uint32_t LIEF::PE::ResourceDialogExtended::Item::help_id ( ) const
inline

The help context identifier for the control. When the system sends a WM_HELP message, it passes the helpID value in the dwContextId member of the HELPINFO structure.

◆ help_id() [2/2]

Item & LIEF::PE::ResourceDialogExtended::Item::help_id ( uint32_t value)
inline

◆ operator=() [1/2]

Item & LIEF::PE::ResourceDialogExtended::Item::operator= ( const Item & )
default

◆ operator=() [2/2]

Item & LIEF::PE::ResourceDialogExtended::Item::operator= ( Item && )
default

◆ parse()

static result< Item > LIEF::PE::ResourceDialogExtended::Item::parse ( BinaryStream & stream)
static

◆ to_string()

std::string LIEF::PE::ResourceDialogExtended::Item::to_string ( ) const
overridevirtual

The documentation for this class was generated from the following file: