fs/rap/fsWinApp.cpp File Reference

#include <fs/rap/fsWinApp.h>
#include <fs/sys/fsAssert.h>
#include <vector>
#include <windows.h>

Include dependency graph for fsWinApp.cpp:

Go to the source code of this file.

Namespaces

namespace  fs
namespace  fs::rap

Defines

#define FS_VERIFY_RETURN(exp)   if(!(exp)) { FS_ASSERT_MSG(0, #exp "<return>"); return; }
#define FS_VERIFY_RETURN_VAL(exp, ret)   if(!(exp)) { FS_ASSERT_MSG(0, #exp "<returns:>" #ret); return (ret); }

Typedefs

typedef std::vector< WinApp_t::EvRcvr_i * > TEvRcvrs

Functions

WinApp_tfs::rap::WinAppInst ()
template<typename T>
void Send (T &Event)
LRESULT CALLBACK WndProc (HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
void GetWinStyles (const WinApp_t::InitCfg_t &Cfg, DWORD &dwStyle, DWORD &dwExStyle)
void GetDeskSize (int &nDeskW, int &nDeskH)
 Returns the size of the desktop window.
void CalcClientRect (const WinApp_t::InitCfg_t &Cfg, RECT &rcCl)
void CalcWinRect (const WinApp_t::InitCfg_t &Cfg, RECT &rcWin)
HWND CreateWin (const WinApp_t::InitCfg_t &Cfg)
int WINAPI WinMain (HINSTANCE, HINSTANCE, LPSTR pszCmdLine, int)

Variables

WinApp_t::InitCfg_t g_Cfg
const char * g_pszCmdLine = 0
HWND g_hWnd = 0
int g_nMouseX = 0
 Main window handle.
int g_nMouseY = 0
TEvRcvrs g_EvRcvrs
 List of registered event receivers.
bool g_bIgnSysEvs = true
 Ignore system events flag.


Define Documentation

#define FS_VERIFY_RETURN ( exp   )     if(!(exp)) { FS_ASSERT_MSG(0, #exp "<return>"); return; }

Definition at line 61 of file fsWinApp.cpp.

#define FS_VERIFY_RETURN_VAL ( exp,
ret   )     if(!(exp)) { FS_ASSERT_MSG(0, #exp "<returns:>" #ret); return (ret); }

Definition at line 65 of file fsWinApp.cpp.


Typedef Documentation

typedef std::vector<WinApp_t::EvRcvr_i *> TEvRcvrs [static]

Definition at line 98 of file fsWinApp.cpp.


Function Documentation

void @3::CalcClientRect ( const WinApp_t::InitCfg_t Cfg,
RECT &  rcCl 
) [static]

Definition at line 243 of file fsWinApp.cpp.

References GetDeskSize(), fs::rap::WinApp_t::InitCfg_t::m_bFscrn, fs::rap::WinApp_t::InitCfg_t::m_nClH, fs::rap::WinApp_t::InitCfg_t::m_nClW, fs::rap::WinApp_t::InitCfg_t::m_nFscrnH, and fs::rap::WinApp_t::InitCfg_t::m_nFscrnW.

Here is the call graph for this function:

void @3::CalcWinRect ( const WinApp_t::InitCfg_t Cfg,
RECT &  rcWin 
) [static]

Definition at line 280 of file fsWinApp.cpp.

References CalcClientRect(), and GetWinStyles().

Here is the call graph for this function:

HWND @3::CreateWin ( const WinApp_t::InitCfg_t Cfg  )  [static]

Definition at line 293 of file fsWinApp.cpp.

References CalcWinRect(), FS_ASSERT, FS_ASSERT_MSG, GetWinStyles(), fs::rap::WinApp_t::InitCfg_t::m_bClrBgr, and WndProc().

Here is the call graph for this function:

void @3::GetDeskSize ( int &  nDeskW,
int &  nDeskH 
) [static]

Returns the size of the desktop window.

Definition at line 231 of file fsWinApp.cpp.

References FS_ASSERT.

void @3::GetWinStyles ( const WinApp_t::InitCfg_t Cfg,
DWORD &  dwStyle,
DWORD &  dwExStyle 
) [static]

Definition at line 208 of file fsWinApp.cpp.

References fs::rap::WinApp_t::InitCfg_t::m_bFscrn, and fs::rap::WinApp_t::InitCfg_t::m_bSzbl.

template<typename T>
void @3::Send ( T &  Event  )  [static]

Definition at line 103 of file fsWinApp.cpp.

References fs::rap::WinAppInst().

Here is the call graph for this function:

int WINAPI WinMain ( HINSTANCE  ,
HINSTANCE  ,
LPSTR  pszCmdLine,
int   
)

Definition at line 361 of file fsWinApp.cpp.

References CreateWin(), FS_ASSERT, g_bIgnSysEvs, g_Cfg, g_hWnd, g_pszCmdLine, fs::rap::WinApp_t::InitCfg_t::m_bRtm, fs::rap::WinApp_t::InitCfg_t::m_pszTitle, Send(), fs::rap::WinApp_t::SetTitle(), fs::rap::WinAppInit(), and fs::rap::WinAppInst().

Here is the call graph for this function:

LRESULT CALLBACK @3::WndProc ( HWND  hWnd,
UINT  msg,
WPARAM  wParam,
LPARAM  lParam 
) [static]

Definition at line 109 of file fsWinApp.cpp.

References fs::rap::WinApp_t::Fscrn(), g_Cfg, g_nMouseY, fs::rap::WinApp_t::InitCfg_t::m_bFscrn, fs::rap::WinApp_t::InitCfg_t::m_nClH, fs::rap::WinApp_t::InitCfg_t::m_nClW, fs::rap::WinApp_t::Quit(), Send(), and fs::rap::WinAppInst().

Here is the call graph for this function:


Variable Documentation

bool g_bIgnSysEvs = true [static]

Ignore system events flag.

Definition at line 100 of file fsWinApp.cpp.

WinApp_t::InitCfg_t g_Cfg [static]

Definition at line 94 of file fsWinApp.cpp.

TEvRcvrs g_EvRcvrs [static]

List of registered event receivers.

Definition at line 99 of file fsWinApp.cpp.

HWND g_hWnd = 0 [static]

Definition at line 96 of file fsWinApp.cpp.

int g_nMouseX = 0 [static]

Main window handle.

Definition at line 97 of file fsWinApp.cpp.

int g_nMouseY = 0 [static]

Definition at line 97 of file fsWinApp.cpp.

const char* g_pszCmdLine = 0 [static]

Definition at line 95 of file fsWinApp.cpp.


FipS' Code (Thu Feb 15 22:43:42 2007) - (c) Filip STOKLAS (FipS) - [ www ] [ Guest Book ]