ReactOS  0.4.15-dev-344-g6808e40
CtlColorParent< BASE > Struct Template Reference

#include <window.h>

Inheritance diagram for CtlColorParent< BASE >:
Collaboration diagram for CtlColorParent< BASE >:

Public Types

typedef BASE super
 

Public Member Functions

 CtlColorParent (HWND hwnd)
 
LRESULT WndProc (UINT nmsg, WPARAM wparam, LPARAM lparam)
 

Detailed Description

template<typename BASE>
struct CtlColorParent< BASE >

Definition at line 595 of file window.h.

Member Typedef Documentation

◆ super

template<typename BASE>
typedef BASE CtlColorParent< BASE >::super

Definition at line 597 of file window.h.

Constructor & Destructor Documentation

◆ CtlColorParent()

template<typename BASE>
CtlColorParent< BASE >::CtlColorParent ( HWND  hwnd)
inline

Definition at line 599 of file window.h.

600  : super(hwnd) {}
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
BASE super
Definition: window.h:597

Member Function Documentation

◆ WndProc()

template<typename BASE>
LRESULT CtlColorParent< BASE >::WndProc ( UINT  nmsg,
WPARAM  wparam,
LPARAM  lparam 
)
inline

Definition at line 602 of file window.h.

603  {
604  switch(nmsg) {
605  case WM_CTLCOLOR:
606  case WM_CTLCOLORBTN:
607  case WM_CTLCOLORDLG:
609  case WM_CTLCOLORSTATIC: {
610  HWND hctl = (HWND) lparam;
611  return SendMessage(hctl, PM_DISPATCH_CTLCOLOR, wparam, nmsg);
612  }
613 
614  default:
615  return super::WndProc(nmsg, wparam, lparam);
616  }
617  }
#define WM_CTLCOLORDLG
Definition: winuser.h:1752
#define WM_CTLCOLORSTATIC
Definition: winuser.h:1754
HANDLE HWND
Definition: compat.h:13
#define WM_CTLCOLOR
Definition: windowsx.h:4
#define WM_CTLCOLORBTN
Definition: winuser.h:1751
static UINT WPARAM LPARAM lparam
Definition: combo.c:716
#define WM_CTLCOLORSCROLLBAR
Definition: winuser.h:1753
#define PM_DISPATCH_CTLCOLOR
Definition: window.h:593
LRESULT CALLBACK WndProc(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam)
Definition: solitaire.cpp:598
#define SendMessage
Definition: winuser.h:5818
static UINT WPARAM wparam
Definition: combo.c:716

The documentation for this struct was generated from the following file: