![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cWinApp.h>
Public Member Functions | |
CWinApp (const FILECHAR_t *pszAppName=nullptr) | |
virtual | ~CWinApp () |
virtual bool | isValidCheck () const noexcept |
virtual BOOL | InitInstance () override |
virtual bool | OnTickApp () override |
APP_EXITCODE_t | Main (HINSTANCE hInstance, SHOWWINDOW_t nCmdShow) |
![]() | |
cAppImpl (const FILECHAR_t *pszAppName=nullptr) | |
virtual | ~cAppImpl () |
virtual cString | get_HelpText () const |
virtual bool | ShowHelp () |
virtual bool | CheckHelpArgs () |
virtual int | Run () |
virtual int | ExitInstance () |
APP_EXITCODE_t | Main (HMODULE hInstance=((HMODULE) nullptr)) |
![]() | |
cWinResMod (HMODULE hModule) noexcept | |
cString | LoadStrID (RESOURCEID_t idString) noexcept |
![]() | |
cAppConfigX (cStringF sProfileName, cStringF sRegistryKey="") | |
~cAppConfigX () | |
HRESULT | GetOpenIni (bool bCreate=true) |
HRESULT | FlushX () |
HRESULT | EnumConfig (const IniChar_t *pszSection, OUT cArrayString< IniChar_t > &rArray) |
cString | GetConfigStr (const IniChar_t *pszSection, const IniChar_t *pszEntry, const GChar_t *pszDefault=nullptr) |
UINT | GetConfigUInt (const IniChar_t *pszSection, const IniChar_t *pszEntry, int iDefault=0) |
bool | GetConfigVar (const IniChar_t *pszSection, const IniChar_t *pszEntry, OUT cVariant &rvVal) |
bool | WriteConfigStr (const IniChar_t *pszSection, const IniChar_t *pszEntry, const GChar_t *pszVal) |
bool | WriteConfigInt (const IniChar_t *pszSection, const IniChar_t *pszEntry, int iVal) |
bool | WriteConfigVar (const IniChar_t *pszSection, const IniChar_t *pszEntry, const cVariant &vVal) |
![]() | |
virtual void | ProcessMessage (MSG &msg) |
HRESULT | ProcessMessages (TIMESYSD_t tMax=10) |
Static Public Member Functions | |
static bool | isSingleCreated () |
static CWinApp * | get_Single () |
static CWinApp & | I () |
![]() | |
static HINSTANCE | get_HInstance () |
![]() | |
static bool | isSingleCreated () noexcept |
static cAppImpl * | get_SingleU () noexcept |
static cAppImpl * | get_Single () |
static TYPE2 *__stdcall | get_SingleCast () |
static cAppImpl & | I () noexcept |
![]() | |
static constexpr const GChar_t * | MakeIntResource (RESOURCEID_t id) noexcept |
static constexpr bool | IsIntResource (const GChar_t *pszText) noexcept |
static constexpr RESOURCEID_t | GetIntResource (const GChar_t *pszText) noexcept |
![]() | |
static cWinMessagePump *GRAYCALL | get_MessagePump () |
Public Attributes | |
cStringF | m_pszHelpFilePath |
The path to the application's Help file. (if any) (MFC name) More... | |
const FILECHAR_t * | m_pszProfileName |
the path to the profile specific to this app. (else use m_pszRegistryKey) More... | |
![]() | |
const FILECHAR_t * | m_pszAppName |
Specifies the name of my application. (display friendly) More... | |
TIMESYSD_t | m_nMinTickTime |
Minimum amount of time to spend in the OnTickApp() (mSec). cThreadId::SleepCurrent() if there is extra time. More... | |
cAppState & | m_State |
Quick reference to cAppState singleton. More... | |
bool | m_bCloseSignal |
Polite request to close the application. checked in Run() and OnTickApp() More... | |
Additional Inherited Members | |
![]() | |
static const char * | k_HelpText |
![]() | |
cSingletonStatic (cAppImpl *pObject) noexcept | |
virtual | ~cSingletonStatic () noexcept |
![]() | |
HMODULE | m_hModule |
![]() | |
cStringF | m_sProfileName |
The full path to the profile specific to this app. (or just "Appname" for a m_sRegistryKey ) More... | |
cIniFile | m_IniFile |
Cached open INI file. (if we use it) More... | |
bool | m_bIniFileModified |
If we are using the m_IniFile file vs the registry then we need to write it. More... | |
![]() | |
static cAppImpl * | sm_pThe |
pointer to the one and only object of this TYPE. ASSUME automatically init to = nullptr. More... | |
the current application is a Windows GUI app. cSingletonStatic in process space. theApp. extends/compliments cAppState but for _WIN32 only. Similar to MFC CWinApp type often named theApp Similar to Gtk::Main() can be used with CAtlServiceModuleT, cNTServiceImpl
GrayLib::CWinApp::CWinApp | ( | const FILECHAR_t * | pszAppName = nullptr | ) |
|
virtual |
|
inlinestatic |
overload cSingleton<cXObjMgr>
|
inlinestatic |
overload cSingleton<cXObjMgr>
|
overridevirtual |
Reimplemented from Gray::cAppImpl.
|
inlinestatic |
|
inlinevirtualnoexcept |
APP_EXITCODE_t GrayLib::CWinApp::Main | ( | HINSTANCE | hInstance, |
SHOWWINDOW_t | nCmdShow | ||
) |
Similar to MFC AfxWinMain()
|
overridevirtual |
Windows message loop.
Reimplemented from Gray::cAppImpl.
cStringF GrayLib::CWinApp::m_pszHelpFilePath |
The path to the application's Help file. (if any) (MFC name)
const FILECHAR_t* GrayLib::CWinApp::m_pszProfileName |
the path to the profile specific to this app. (else use m_pszRegistryKey)