Public Types | Public Member Functions | Protected Member Functions

OwnerdrawnButton Struct Reference

Subclass button controls to draw them by using PM_DISPATCH_DRAWITEM The owning window should use the OwnerDrawParent template to route owner draw messages to the buttons. More...

#include <window.h>

Inheritance diagram for OwnerdrawnButton:
Inheritance graph
[legend]
Collaboration diagram for OwnerdrawnButton:
Collaboration graph
[legend]

List of all members.

Public Types

typedef SubclassedWindow super

Public Member Functions

 OwnerdrawnButton (HWND hwnd)

Protected Member Functions

LRESULT WndProc (UINT nmsg, WPARAM wparam, LPARAM lparam)
virtual void DrawItem (LPDRAWITEMSTRUCT dis)=0

Detailed Description

Subclass button controls to draw them by using PM_DISPATCH_DRAWITEM The owning window should use the OwnerDrawParent template to route owner draw messages to the buttons.

Definition at line 655 of file window.h.


Member Typedef Documentation

Reimplemented from SubclassedWindow.

Reimplemented in StartButton, StartMenuButton, FlatButton, and PictureButton.

Definition at line 657 of file window.h.


Constructor & Destructor Documentation

OwnerdrawnButton::OwnerdrawnButton ( HWND  hwnd ) [inline]

Definition at line 659 of file window.h.

     :  super(hwnd) {}

Member Function Documentation

virtual void OwnerdrawnButton::DrawItem ( LPDRAWITEMSTRUCT  dis ) [protected, pure virtual]

Implemented in StartMenuButton, FlatButton, and PictureButton.

Referenced by WndProc().

Here is the caller graph for this function:

LRESULT OwnerdrawnButton::WndProc ( UINT  nmsg,
WPARAM  wparam,
LPARAM  lparam 
) [protected, virtual]

Reimplemented from SubclassedWindow.

Reimplemented in StartButton, StartMenuButton, and FlatButton.

Definition at line 860 of file window.cpp.

References DrawItem(), PM_DISPATCH_DRAWITEM, and SubclassedWindow::WndProc().

Referenced by FlatButton::WndProc(), and StartButton::WndProc().

{
    if (nmsg == PM_DISPATCH_DRAWITEM) {
        DrawItem((LPDRAWITEMSTRUCT)lparam);
        return TRUE;
    } else
        return super::WndProc(nmsg, wparam, lparam);
}

Here is the call graph for this function:

Here is the caller graph for this function:


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

ROS Explorer Source Code Documentation
generated on 02.01.2013 by doxygen

ROS Explorer Homepage