ReactOS 0.4.15-dev-5893-g1bb4167
OwnerDrawParent< BASE > Struct Template Reference

draw message routing for ColorButton and PictureButton More...

#include <window.h>

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

Public Types

typedef BASE super

Public Member Functions

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

Detailed Description

template<typename BASE>
struct OwnerDrawParent< BASE >

draw message routing for ColorButton and PictureButton

Definition at line 624 of file window.h.

Member Typedef Documentation

◆ super

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

Definition at line 626 of file window.h.

Constructor & Destructor Documentation

◆ OwnerDrawParent()

template<typename BASE >
OwnerDrawParent< BASE >::OwnerDrawParent ( HWND  hwnd)

Definition at line 628 of file window.h.

629 : super(hwnd) {}
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023

Member Function Documentation

◆ WndProc()

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

Definition at line 631 of file window.h.

632 {
633 switch(nmsg) {
634 case WM_DRAWITEM:
635 if (wparam) { // should there be drawn a control?
636 HWND hctl = GetDlgItem(this->_hwnd, wparam);
638 if (hctl)
640 } /*else // or is it a menu entry?
641 ; */
643 return 0;
645 default:
646 return super::WndProc(nmsg, wparam, lparam);
647 }
648 }
Definition: window.h:621
static UINT WPARAM wparam
Definition: combo.c:716
static UINT WPARAM LPARAM lparam
Definition: combo.c:716
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
Definition: winuser.h:1635
#define SendMessage
Definition: winuser.h:5833

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