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

#include <cWinResource.h>

Inheritance diagram for GrayLib::cWinResMod:
GrayLib::CWinApp GrayLib::cAppRes

Public Member Functions

 cWinResMod (HMODULE hModule) noexcept
 
cString LoadStrID (RESOURCEID_t idString) noexcept
 

Static Public Member Functions

static constexpr const GChar_tMakeIntResource (RESOURCEID_t id) noexcept
 
static constexpr bool IsIntResource (const GChar_t *pszText) noexcept
 
static constexpr RESOURCEID_t GetIntResource (const GChar_t *pszText) noexcept
 

Protected Attributes

HMODULE m_hModule
 

Detailed Description

Resources attached to any module/DLL. HMODULE related to cAppRes,

Constructor & Destructor Documentation

◆ cWinResMod()

GrayLib::cWinResMod::cWinResMod ( HMODULE  hModule)
inlinenoexcept

Member Function Documentation

◆ GetIntResource()

static constexpr RESOURCEID_t GrayLib::cWinResMod::GetIntResource ( const GChar_t pszText)
inlinestaticconstexprnoexcept

was GETINTRESOURCE(p)

◆ IsIntResource()

static constexpr bool GrayLib::cWinResMod::IsIntResource ( const GChar_t pszText)
inlinestaticconstexprnoexcept

IS_INTRESOURCE(p) is this a RESOURCEID_t and not a real pointer?

◆ LoadStrID()

cString GrayLib::cWinResMod::LoadStrID ( RESOURCEID_t  idString)
noexcept

RT_STRING

Note
can't use the method name "LoadString" because its defined.

◆ MakeIntResource()

static constexpr const GChar_t* GrayLib::cWinResMod::MakeIntResource ( RESOURCEID_t  id)
inlinestaticconstexprnoexcept

like _WIN32 macro MAKEINTRESOURCE(id), e.g. IDC_WAIT, IDC_ARROW, etc. Make the RESOURCEID_t look like a pointer for consumption by WIN32 functions like LoadIcon() etc.

Member Data Documentation

◆ m_hModule

HMODULE GrayLib::cWinResMod::m_hModule
protected

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