Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayLib::cResDlgBase Class Reference

#include <cResDialog.h>

Inheritance diagram for GrayLib::cResDlgBase:
GrayLib::cResDialog GrayLib::cResDlgTemplateItem

Public Member Functions

void SetCopy (const cResDlgBase *pItem)
 
void SetClear ()
 
cPoint2i get_XYPosDLU (void) noexcept
 
short get_WidthDLU () const
 
short get_HeightDLU () const
 
cRectI get_Rect () const
 

Public Attributes

DLGID_t m_wId
 old format this is a WORD, EX format this is UINT32. More...
 
UINT32 m_dwHelpId
 Extended only RESOURCEID_t. More...
 
cPoint2i m_point
 dialog units = 4x8 units of the current selected font. k_DLU_X More...
 
cWinSize m_size
 in dialog units. k_DLU_X More...
 
UINT32 m_dwExStyle
 
UINT32 m_dwStyle
 
cResDlgStringOrId m_Class
 "BUTTON","LISTBOX" etc. DIALOG or DIALOGEX ? More...
 
cResDlgStringOrId m_Title
 

Static Public Attributes

static const int k_DLU_X = 4
 ratio of dialog units to pixels. ((float)get_FontWidth()) / k_DLU_X; // 1.5f; // convert dialog units to pixels More...
 
static const int k_DLU_Y = 8
 ratio of dialog units to pixels. ((float)get_FontHeight()) / k_DLU_Y; // 1.7f; // convert dialog units to pixels More...
 

Detailed Description

Base properties shared with cResDlgTemplateItem and cResDialog. Dialog units based on the size of a current selected font.

Member Function Documentation

◆ get_HeightDLU()

short GrayLib::cResDlgBase::get_HeightDLU ( ) const
inline
Returns
the height of the dialog in dialog units. k_DLU_Y A vertical DLU is the average height of the dialog box font divided by eight.

◆ get_Rect()

cRectI GrayLib::cResDlgBase::get_Rect ( ) const
inline

◆ get_WidthDLU()

short GrayLib::cResDlgBase::get_WidthDLU ( ) const
inline
Returns
the width of the dialog in dialog units. k_DLU_X A horizontal DLU is the average width of the dialog box font divided by four.

◆ get_XYPosDLU()

cPoint2i GrayLib::cResDlgBase::get_XYPosDLU ( void  )
inlinenoexcept

k_DLU_X

◆ SetClear()

void GrayLib::cResDlgBase::SetClear ( )

◆ SetCopy()

void GrayLib::cResDlgBase::SetCopy ( const cResDlgBase pItem)

Member Data Documentation

◆ k_DLU_X

const int GrayLib::cResDlgBase::k_DLU_X = 4
static

ratio of dialog units to pixels. ((float)get_FontWidth()) / k_DLU_X; // 1.5f; // convert dialog units to pixels

◆ k_DLU_Y

const int GrayLib::cResDlgBase::k_DLU_Y = 8
static

ratio of dialog units to pixels. ((float)get_FontHeight()) / k_DLU_Y; // 1.7f; // convert dialog units to pixels

◆ m_Class

cResDlgStringOrId GrayLib::cResDlgBase::m_Class

"BUTTON","LISTBOX" etc. DIALOG or DIALOGEX ?

◆ m_dwExStyle

UINT32 GrayLib::cResDlgBase::m_dwExStyle

◆ m_dwHelpId

UINT32 GrayLib::cResDlgBase::m_dwHelpId

Extended only RESOURCEID_t.

◆ m_dwStyle

UINT32 GrayLib::cResDlgBase::m_dwStyle

◆ m_point

cPoint2i GrayLib::cResDlgBase::m_point

dialog units = 4x8 units of the current selected font. k_DLU_X

◆ m_size

cWinSize GrayLib::cResDlgBase::m_size

in dialog units. k_DLU_X

◆ m_Title

cResDlgStringOrId GrayLib::cResDlgBase::m_Title

◆ m_wId

DLGID_t GrayLib::cResDlgBase::m_wId

old format this is a WORD, EX format this is UINT32.


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