draw message routing for ColorButton and PictureButton More...
#include <window.h>


Public Types | |
| typedef BASE | super |
Public Member Functions | |
| OwnerDrawParent (HWND hwnd) | |
| LRESULT | WndProc (UINT nmsg, WPARAM wparam, LPARAM lparam) |
draw message routing for ColorButton and PictureButton
Definition at line 623 of file window.h.
| typedef BASE OwnerDrawParent< BASE >::super |
| OwnerDrawParent< BASE >::OwnerDrawParent | ( | HWND | hwnd ) | [inline] |
| 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;
default:
return super::WndProc(nmsg, wparam, lparam);
}
}

|
ROS Explorer Source Code Documentation
generated on 02.01.2013 by
|