Windows C++ Library
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions | Static Private Member Functions | Static Private Attributes | Friends
CApp Class Reference

#include <App.hpp>

Inheritance diagram for CApp:
CSDIApp

List of all members.

Public Member Functions

 CApp (CFrameWnd &rFrameWnd, CCmdControl &rCmdControl)
virtual ~CApp ()
const CFontDefaultFont ()
const CBrushMidToneBrush ()
const CPenLightPen ()
const CPenLightestPen ()
const CPenDarkPen ()
const CPenDarkestPen ()
WCL::TimerID StartTimer (uint nFrequency)
void StopTimer (WCL::TimerID nTimerID)
int AlertMsg (const tchar *pszMsg,...) const
int QueryMsg (const tchar *pszMsg,...) const
int NotifyMsg (const tchar *pszMsg,...) const
int FatalMsg (const tchar *pszMsg,...) const
bool ShowNormal () const

Static Public Member Functions

static bool IsValid ()
 Check if the app singleton is valid.
static CAppThis ()
 Global access to the app singleton.

Public Attributes

CString m_strTitle
CFrameWndm_rMainWnd
CCmdControlm_rCmdControl
CModule m_Module
CMainThread m_MainThread
CString m_strCmdLine
int m_iCmdShow
CComCtl32 m_oComCtl32

Protected Member Functions

virtual bool OnOpen ()
virtual bool OnClose ()
virtual void OnTimer (WCL::TimerID nTimerID)
virtual void OnThreadMsg (UINT nMsg, WPARAM wParam, LPARAM lParam)

Protected Attributes

CFont m_DefaultFont
CBrush m_MidToneBrush
CPen m_LightPen
CPen m_LightestPen
CPen m_DarkPen
CPen m_DarkestPen

Private Member Functions

bool Open ()
void Run ()
void Close ()
 CApp (const CApp &)
CAppoperator= (const CApp &)

Static Private Member Functions

static void CALLBACK TimerProc (HWND hWnd, UINT uMsg, WCL::TimerID nTimerID, DWORD dwTime)

Static Private Attributes

static CAppg_pThis = NULL
 The singleton EXE component object.

Friends

class CMainThread
int WINAPI WinMain (HINSTANCE hCurrInst, HINSTANCE hPrevInst, LPSTR lpszCmdLine, int iCmdShow)

Constructor & Destructor Documentation

CApp::CApp ( CFrameWnd rFrameWnd,
CCmdControl rCmdControl 
)
CApp::~CApp ( ) [virtual]
CApp::CApp ( const CApp ) [private]

Member Function Documentation

const CFont & CApp::DefaultFont ( ) [inline]
const CBrush & CApp::MidToneBrush ( ) [inline]
const CPen & CApp::LightPen ( ) [inline]
const CPen & CApp::LightestPen ( ) [inline]
const CPen & CApp::DarkPen ( ) [inline]
const CPen & CApp::DarkestPen ( ) [inline]
WCL::TimerID CApp::StartTimer ( uint  nFrequency) [inline]
void CApp::StopTimer ( WCL::TimerID  nTimerID) [inline]
int CApp::AlertMsg ( const tchar *  pszMsg,
  ... 
) const
int CApp::QueryMsg ( const tchar *  pszMsg,
  ... 
) const
int CApp::NotifyMsg ( const tchar *  pszMsg,
  ... 
) const
int CApp::FatalMsg ( const tchar *  pszMsg,
  ... 
) const
bool CApp::ShowNormal ( ) const [inline]
bool CApp::IsValid ( ) [static]

Check if the app singleton is valid.

CApp & CApp::This ( ) [static]

Global access to the app singleton.

Reimplemented in CSDIApp.

bool CApp::OnOpen ( ) [protected, virtual]

Reimplemented in CSDIApp.

bool CApp::OnClose ( ) [protected, virtual]

Reimplemented in CSDIApp.

void CApp::OnTimer ( WCL::TimerID  nTimerID) [protected, virtual]
void CApp::OnThreadMsg ( UINT  nMsg,
WPARAM  wParam,
LPARAM  lParam 
) [protected, virtual]
bool CApp::Open ( ) [private]
void CApp::Run ( ) [private]
void CApp::Close ( ) [private]
CApp& CApp::operator= ( const CApp ) [private]
void CALLBACK CApp::TimerProc ( HWND  hWnd,
UINT  uMsg,
WCL::TimerID  nTimerID,
DWORD  dwTime 
) [static, private]

Friends And Related Function Documentation

friend class CMainThread [friend]
int WINAPI WinMain ( HINSTANCE  hCurrInst,
HINSTANCE  hPrevInst,
LPSTR  lpszCmdLine,
int  iCmdShow 
) [friend]

Member Data Documentation

CPen CApp::m_LightPen [protected]
CPen CApp::m_DarkPen [protected]
CPen CApp::m_DarkestPen [protected]
CApp * CApp::g_pThis = NULL [static, private]

The singleton EXE component object.


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