ReactOS 0.4.17-dev-1133-gc25e4fd
CActionWnd Class Reference

#include <CActionWnd.h>

Inheritance diagram for CActionWnd:
Collaboration diagram for CActionWnd:

Public Member Functions

 CActionWnd ()
 
 ~CActionWnd ()
 
LRESULT OnCreate (UINT nMessage, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
LRESULT OnDestroy (UINT nMessage, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
LRESULT OnPaint (UINT nMessage, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 

Static Public Member Functions

static CWndClassInfo & GetWndClassInfo ()
 
static LPCTSTR GetWndClassName ()
 

Detailed Description

Definition at line 10 of file CActionWnd.h.

Constructor & Destructor Documentation

◆ CActionWnd()

CActionWnd::CActionWnd ( )

Definition at line 10 of file CActionWnd.cpp.

11{
12}

◆ ~CActionWnd()

CActionWnd::~CActionWnd ( )

Definition at line 14 of file CActionWnd.cpp.

15{
16}

Member Function Documentation

◆ GetWndClassInfo()

static CWndClassInfo & CActionWnd::GetWndClassInfo ( )
inlinestatic

Definition at line 25 of file CActionWnd.h.

26 {
27 static CWndClassInfo wc =
28 {
29 {
30 /* cbSize= */sizeof(WNDCLASSEX),
31 /* style= */0,
32 /* lpfnWndProc= */StartWindowProc,
33 /* cbClsExtra= */0,
34 /* cbWndExtra= */0,
35 /* hInstance= */NULL,
36 /* hIcon= */ NULL, //LoadIcon(_AtlBaseModule.GetModuleInstance(), MAKEINTRESOURCE(IDI_MAINAPP)),
37 /* hCursor= */NULL,
38 /* hbrBackground= */(HBRUSH)(COLOR_BTNFACE + 1),
39 /* lpszMenuName= */NULL,
40 /* lpszClassName= */L"MMCActionWindow",
41 /* hIconSm= */NULL //LoadIcon(_AtlBaseModule.GetModuleInstance(), MAKEINTRESOURCE(IDI_MAINAPP))
42 },
43 NULL, NULL, IDC_ARROW, TRUE, 0, L""
44 };
45 return wc;
46 }
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define L(x)
Definition: resources.c:13
_ATL_WNDCLASSINFOW CWndClassInfo
Definition: atlwin.h:70
#define IDC_ARROW
Definition: winuser.h:695
WNDCLASSEXA WNDCLASSEX
Definition: winuser.h:5885
#define COLOR_BTNFACE
Definition: winuser.h:939

Referenced by GetWndClassName(), and CMMCModule::PreMessageLoop().

◆ GetWndClassName()

static LPCTSTR CActionWnd::GetWndClassName ( )
inlinestatic

Definition at line 48 of file CActionWnd.h.

49 {
50 return GetWndClassInfo().m_wc.lpszClassName;
51 }
static CWndClassInfo & GetWndClassInfo()
Definition: CActionWnd.h:25

◆ OnCreate()

LRESULT CActionWnd::OnCreate ( UINT  nMessage,
WPARAM  wParam,
LPARAM  lParam,
BOOL &  bHandled 
)

Definition at line 19 of file CActionWnd.cpp.

20{
21 return 0;
22}

◆ OnDestroy()

LRESULT CActionWnd::OnDestroy ( UINT  nMessage,
WPARAM  wParam,
LPARAM  lParam,
BOOL &  bHandled 
)

Definition at line 25 of file CActionWnd.cpp.

26{
27 return 0;
28}

◆ OnPaint()

LRESULT CActionWnd::OnPaint ( UINT  nMessage,
WPARAM  wParam,
LPARAM  lParam,
BOOL &  bHandled 
)

Definition at line 31 of file CActionWnd.cpp.

32{
33 PAINTSTRUCT ps;
34 HDC hdc = BeginPaint(&ps);
35
36 FillRect(hdc, &ps.rcPaint, (HBRUSH) (COLOR_WINDOW+1));
37
38 EndPaint(&ps);
39
40 return 0;
41}
HDC hdc
Definition: main.c:9
static HDC
Definition: imagelist.c:88
#define COLOR_WINDOW
Definition: winuser.h:929
BOOL WINAPI EndPaint(_In_ HWND, _In_ const PAINTSTRUCT *)
HDC WINAPI BeginPaint(_In_ HWND, _Out_ LPPAINTSTRUCT)
int WINAPI FillRect(HDC, LPCRECT, HBRUSH)

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