Public Types | Public Member Functions

OwnerDrawParent< BASE > Struct Template Reference

draw message routing for ColorButton and PictureButton More...

#include <window.h>

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

List of all members.

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 623 of file window.h.

Member Typedef Documentation

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

Constructor & Destructor Documentation

template<typename BASE>
OwnerDrawParent< BASE >::OwnerDrawParent ( HWND  hwnd ) [inline]

Definition at line 627 of file window.h.

     : super(hwnd) {}

Member Function Documentation

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

Reimplemented in ExplorerAboutDlg, DesktopBar, StartMenu, StartMenuRoot, ExtContextMenuHandlerT< OwnerDrawParent< DialogWindow > >, and CtlColorParent< OwnerDrawParent< Dialog > >.

Definition at line 630 of file window.h.

Referenced by OwnerDrawParent< Dialog >::WndProc().

        switch(nmsg) {
          case WM_DRAWITEM:
            if (wparam) {   // should there be drawn a control?
                HWND hctl = GetDlgItem(this->_hwnd, wparam);

                if (hctl)
                    return SendMessage(hctl, PM_DISPATCH_DRAWITEM, wparam, lparam);
            } /*else        // or is it a menu entry?
                ; */

            return 0;

            return super::WndProc(nmsg, wparam, lparam);

Here is the caller graph for this function:

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

ROS Explorer Source Code Documentation
generated on 02.01.2013 by doxygen

ROS Explorer Homepage