FlatButton Struct Reference

Subclass button controls to paint colored text labels. More...

#include <window.h>

Inheritance diagram for FlatButton:

Inheritance graph
[legend]
Collaboration diagram for FlatButton:

Collaboration graph
[legend]

Public Types

typedef OwnerdrawnButton super

Public Member Functions

 FlatButton (HWND hwnd)
 FlatButton (HWND owner, int id)

Protected Member Functions

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

Protected Attributes

COLORREF _textColor
COLORREF _activeColor
bool _active

Detailed Description

Subclass button controls to paint colored text labels.

The owning window should use the OwnerDrawParent template to route owner draw messages to the buttons.

Definition at line 674 of file window.h.


Member Typedef Documentation

typedef OwnerdrawnButton FlatButton::super

Reimplemented from OwnerdrawnButton.

Definition at line 676 of file window.h.


Constructor & Destructor Documentation

FlatButton::FlatButton ( HWND  hwnd  )  [inline]

Definition at line 678 of file window.h.

00679      : super(hwnd), _active(false) {}

FlatButton::FlatButton ( HWND  owner,
int  id 
) [inline]

Definition at line 681 of file window.h.

00682      : super(GetDlgItem(owner, IDOK)), _active(false) {}


Member Function Documentation

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

Reimplemented from OwnerdrawnButton.

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

Implements OwnerdrawnButton.


Field Documentation

COLORREF FlatButton::_textColor [protected]

Definition at line 688 of file window.h.

COLORREF FlatButton::_activeColor [protected]

Definition at line 689 of file window.h.

bool FlatButton::_active [protected]

Definition at line 690 of file window.h.


The documentation for this struct was generated from the following file:
IBrowser Source Code Documentation
generated on 18.09.2008 by doxygen

Homepage