ReactOS 0.4.15-dev-7931-gfd331f1
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) {}
BASE super
Definition: window.h:597
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023

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 }
@ lparam
Definition: SystemMenu.c:31
@ wparam
Definition: SystemMenu.c:30
HANDLE HWND
Definition: compat.h:19
#define PM_DISPATCH_CTLCOLOR
Definition: window.h:593
#define WM_CTLCOLOR
Definition: windowsx.h:29
#define WM_CTLCOLORSTATIC
Definition: winuser.h:1772
#define WM_CTLCOLORSCROLLBAR
Definition: winuser.h:1771
#define WM_CTLCOLORBTN
Definition: winuser.h:1769
#define SendMessage
Definition: winuser.h:5843
#define WM_CTLCOLORDLG
Definition: winuser.h:1770

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