ReactOS 0.4.15-dev-8219-ge8b88cf
CLoaderWnd Class Reference

#include <CLoaderWnd.h>

Collaboration diagram for CLoaderWnd:

Public Member Functions

 CLoaderWnd ()
 
 ~CLoaderWnd ()
 
BOOL Init ()
 
HWND CreateWnd ()
 

Public Attributes

HWND m_hWnd
 

Static Public Attributes

static BOOL s_bUninitedSystem = FALSE
 
static BOOL s_bWndClassRegistered = FALSE
 

Static Protected Member Functions

static LRESULT CALLBACK WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
 

Detailed Description

Definition at line 10 of file CLoaderWnd.h.

Constructor & Destructor Documentation

◆ CLoaderWnd()

CLoaderWnd::CLoaderWnd ( )
inline

Definition at line 17 of file CLoaderWnd.h.

17: m_hWnd(NULL) { }
HWND m_hWnd
Definition: CLoaderWnd.h:13
#define NULL
Definition: types.h:112

◆ ~CLoaderWnd()

CLoaderWnd::~CLoaderWnd ( )
inline

Definition at line 18 of file CLoaderWnd.h.

18{ }

Member Function Documentation

◆ CreateWnd()

HWND CLoaderWnd::CreateWnd ( )

Definition at line 36 of file CLoaderWnd.cpp.

37{
38 m_hWnd = ::CreateWindowEx(0, TEXT("CiCTipBarClass"), NULL, WS_DISABLED,
39 0, 0, 0, 0, NULL, NULL, g_hInst, NULL);
40 return m_hWnd;
41}
HINSTANCE g_hInst
Definition: ctfmon.cpp:23
#define TEXT(s)
Definition: k32.h:26
#define WS_DISABLED
Definition: pedump.c:621
#define CreateWindowEx
Definition: winuser.h:5764

Referenced by InitApp().

◆ Init()

BOOL CLoaderWnd::Init ( )

Definition at line 15 of file CLoaderWnd.cpp.

16{
18 return TRUE; // Already registered
19
20 // Register a window class
21 WNDCLASSEX wc;
22 ZeroMemory(&wc, sizeof(wc));
23 wc.cbSize = sizeof(wc);
25 wc.hInstance = g_hInst;
28 wc.lpszClassName = TEXT("CiCTipBarClass");
29 if (!::RegisterClassEx(&wc))
30 return FALSE;
31
32 s_bWndClassRegistered = TRUE; // Remember
33 return TRUE;
34}
static LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: CLoaderWnd.cpp:44
static BOOL s_bWndClassRegistered
Definition: CLoaderWnd.h:15
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
HINSTANCE hInstance
Definition: winuser.h:3206
HCURSOR hCursor
Definition: winuser.h:3208
UINT style
Definition: winuser.h:3202
UINT cbSize
Definition: winuser.h:3201
WNDPROC lpfnWndProc
Definition: winuser.h:3203
LPCSTR lpszClassName
Definition: winuser.h:3211
#define ZeroMemory
Definition: winbase.h:1712
#define CS_VREDRAW
Definition: winuser.h:658
#define CS_HREDRAW
Definition: winuser.h:653
#define IDC_ARROW
Definition: winuser.h:687
#define RegisterClassEx
Definition: winuser.h:5846
#define LoadCursor
Definition: winuser.h:5821

Referenced by InitApp().

◆ WindowProc()

LRESULT CALLBACK CLoaderWnd::WindowProc ( HWND  hwnd,
UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam 
)
staticprotected

Definition at line 44 of file CLoaderWnd.cpp.

45{
46 switch (uMsg)
47 {
48 case WM_CREATE:
49 break;
50
51 case WM_DESTROY:
53 break;
54
56 // NOTE: We don't support Win95/98/Me
57#ifdef SUPPORT_WIN9X
58 if (!(g_dwOsInfo & CIC_OSINFO_NT) && (!g_fWinLogon || (lParam & ENDSESSION_LOGOFF)))
59 {
63 }
64#endif
65 return TRUE;
66
67 case WM_ENDSESSION:
68 if (wParam) // The session is being ended?
69 {
71 {
72 // Un-initialize now
73 UninitApp();
76 }
77 }
78 else if (s_bUninitedSystem) // Once un-initialized?
79 {
80 // Re-initialize
82 if (!g_bOnWow64)
84
86 }
87 break;
88
90 case WM_DISPLAYCHANGE:
91 if (!g_bOnWow64) // Is the system x86/x64 native?
93 break;
94
95 default:
96 return DefWindowProc(hwnd, uMsg, wParam, lParam);
97 }
98
99 return 0;
100}
#define CIC_OSINFO_NT
Definition: cicbase.h:44
static BOOL s_bUninitedSystem
Definition: CLoaderWnd.h:14
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
VOID UninitApp(VOID)
Definition: ctfmon.cpp:246
BOOL g_bOnWow64
Definition: ctfmon.cpp:28
DWORD g_dwOsInfo
Definition: ctfmon.cpp:31
BOOL g_fWinLogon
Definition: ctfmon.cpp:26
EXTERN_C HRESULT WINAPI TF_UninitSystem(VOID)
EXTERN_C HRESULT WINAPI TF_InitSystem(VOID)
EXTERN_C VOID WINAPI ClosePopupTipbar(VOID)
Definition: msutb.cpp:6377
EXTERN_C BOOL WINAPI GetPopupTipbar(HWND hWnd, BOOL fWinLogon)
Definition: msutb.cpp:6336
#define DefWindowProc
Definition: ros2win.h:31
static VOID StartSysColorChangeTimer()
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
#define WM_CREATE
Definition: winuser.h:1608
__analysis_noreturn void WINAPI PostQuitMessage(_In_ int)
#define WM_SYSCOLORCHANGE
Definition: winuser.h:1626
#define WM_QUERYENDSESSION
Definition: winuser.h:1622
#define WM_DESTROY
Definition: winuser.h:1609
#define WM_ENDSESSION
Definition: winuser.h:1627

Referenced by Init().

Member Data Documentation

◆ m_hWnd

HWND CLoaderWnd::m_hWnd

Definition at line 13 of file CLoaderWnd.h.

Referenced by CreateWnd(), and InitApp().

◆ s_bUninitedSystem

BOOL CLoaderWnd::s_bUninitedSystem = FALSE
static

Definition at line 14 of file CLoaderWnd.h.

Referenced by _tWinMain(), and WindowProc().

◆ s_bWndClassRegistered

BOOL CLoaderWnd::s_bWndClassRegistered = FALSE
static

Definition at line 15 of file CLoaderWnd.h.

Referenced by Init().


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