ReactOS  0.4.14-dev-1007-g90d795b
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) {}
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22

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  }
static UINT WPARAM LPARAM lparam
Definition: combo.c:716
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
LRESULT CALLBACK WndProc(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam)
Definition: solitaire.cpp:598
#define WM_DRAWITEM
Definition: winuser.h:1627
#define SendMessage
Definition: winuser.h:5818
#define PM_DISPATCH_DRAWITEM
Definition: window.h:621
static UINT WPARAM wparam
Definition: combo.c:716

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