CtlColorParent< BASE > Struct Template Reference

#include <window.h>

Inheritance diagram for CtlColorParent< BASE >:

Inheritance graph
[legend]
Collaboration diagram for CtlColorParent< BASE >:

Collaboration graph
[legend]

Public Types

typedef BASE super

Public Member Functions

 CtlColorParent (HWND hwnd)
LRESULT WndProc (UINT nmsg, WPARAM wparam, LPARAM lparam)

Detailed Description

template<typename BASE>
struct CtlColorParent< BASE >

Definition at line 577 of file window.h.


Member Typedef Documentation

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

Definition at line 579 of file window.h.


Constructor & Destructor Documentation

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

Definition at line 581 of file window.h.

00582      : super(hwnd) {}


Member Function Documentation

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

Definition at line 584 of file window.h.

References PM_DISPATCH_CTLCOLOR.

00585     {
00586         switch(nmsg) {
00587           case WM_CTLCOLOR:
00588           case WM_CTLCOLORBTN:
00589           case WM_CTLCOLORDLG:
00590           case WM_CTLCOLORSCROLLBAR:
00591           case WM_CTLCOLORSTATIC: {
00592             HWND hctl = (HWND) lparam;
00593             return SendMessage(hctl, PM_DISPATCH_CTLCOLOR, wparam, nmsg);
00594           }
00595 
00596           default:
00597             return super::WndProc(nmsg, wparam, lparam);
00598         }
00599     }


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

Homepage