ReactOS 0.4.15-dev-8131-g4988de4
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)
inline

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 
)
inline

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);
637
638 if (hctl)
640 } /*else // or is it a menu entry?
641 ; */
642
643 return 0;
644
645 default:
646 return super::WndProc(nmsg, wparam, lparam);
647 }
648 }
@ lparam
Definition: SystemMenu.c:31
@ wparam
Definition: SystemMenu.c:30
#define PM_DISPATCH_DRAWITEM
Definition: window.h:621
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
#define WM_DRAWITEM
Definition: winuser.h:1645
#define SendMessage
Definition: winuser.h:5843

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