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>
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 |
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.
Reimplemented from SubclassedWindow.
Reimplemented in StartButton, StartMenuButton, FlatButton, and PictureButton.
OwnerdrawnButton::OwnerdrawnButton | ( | HWND | hwnd ) | [inline] |
virtual void OwnerdrawnButton::DrawItem | ( | LPDRAWITEMSTRUCT | dis ) | [protected, pure virtual] |
Implemented in StartMenuButton, FlatButton, and PictureButton.
Referenced by WndProc().
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); }
ROS Explorer Source Code Documentation
generated on 02.01.2013 by ![]() |