Windows C++ Library
|
#include <MsgWnd.hpp>
Classes | |
struct | CTRLMSG |
Public Member Functions | |
CMsgWnd () | |
int | HorzScrollPos (int iPos, bool bRepaint=true) |
int | VertScrollPos (int iPos, bool bRepaint=true) |
int | HorzScrollPos () |
int | VertScrollPos () |
void | HorzScrollRange (int iMin, int iMax, bool bRepaint=true) |
void | VertScrollRange (int iMin, int iMax, bool bRepaint=true) |
Protected Types | |
typedef LRESULT(CMsgWnd::* | PFNMSGHANDLER )(HWND hWnd, UINT iMsg, WPARAM wParam, LPARAM lParam) |
typedef void(CMsgWnd::* | PFNCMDMSGHANDLER )() |
typedef LRESULT(CMsgWnd::* | PFNNFYMSGHANDLER )(NMHDR &rMsgHdr) |
Protected Member Functions | |
virtual LRESULT | WndProc (HWND hWnd, UINT iMsg, WPARAM wParam, LPARAM lParam) |
virtual LRESULT | DefaultWndProc (HWND hWnd, UINT iMsg, WPARAM wParam, LPARAM lParam)=0 |
virtual void | OnCreate (const CRect &rcClient) |
virtual void | OnActivate (bool bActivating) |
virtual void | OnEraseBackground (CDC &rDC) |
virtual void | OnPaint (CDC &rDC) |
virtual void | OnResize (WCL::ResizeFlags iFlag, const CSize &NewSize) |
virtual void | OnTimer (WCL::TimerID iTimerID) |
virtual void | OnShow (bool bShowing) |
virtual void | OnDestroy () |
virtual void | OnNCDestroy () |
virtual void | OnHorizScroll (WCL::ScrollbarFlags iCode, uint iPos) |
virtual void | OnVertScroll (WCL::ScrollbarFlags iCode, uint iPos) |
virtual void | OnCmdMsg (uint iID) |
virtual void | OnCtrlMsg (uint iID, uint iMsg, HWND hControl) |
virtual LRESULT | OnCtrlMsg (NMHDR &rMsgHdr) |
virtual void | OnReflectedCtrlMsg (uint iMsg) |
virtual void | OnReflectedCtrlMsg (NMHDR &rMsgHdr) |
virtual void | OnMeasureItem (uint iID, uint iItem, uint &iWidth, uint &iHeight) |
virtual void | OnDrawItem (uint iID, uint iAction, uint iState, CDC &rDC, uint iItem, const CRect &rcItem) |
virtual void | OnSetCursor (HWND hWnd, uint nHitCode, uint nMouseMsg) |
virtual void | OnCtlColour (uint nCtlClrMsg, HDC hDC, HWND hCtlWnd) |
virtual HBRUSH | OnReflectedCtlClr (uint nCtlClrMsg, HDC hDC) |
virtual void | OnHelp (HELPINFO &oInfo) |
virtual void | OnUserMsg (uint nMsg, WPARAM wParam, LPARAM lParam) |
virtual void | OnAppMsg (uint nMsg, WPARAM wParam, LPARAM lParam) |
virtual void | OnRegisteredMsg (uint nMsg, WPARAM wParam, LPARAM lParam) |
virtual void | OnHitTest (const CPoint &ptCursor) |
WNDPROC | WindowProc (WNDPROC lpfnWndProc) |
void | MsgHandled (BOOL bHandled) |
void | MsgResult (LRESULT lResult) |
void | SetMsgResult (BOOL bHandled, LRESULT lResult) |
Set the result for the message. | |
BOOL * | MsgHandledBuffer (BOOL *pbBuffer) |
LRESULT * | MsgResultBuffer (LRESULT *plBuffer) |
Protected Attributes | |
CTRLMSG * | m_pCtrlMsgTable |
Private Member Functions | |
CMsgWnd (const CMsgWnd &) | |
CMsgWnd & | operator= (const CMsgWnd &) |
Private Attributes | |
BOOL * | m_pbMsgHandled |
LRESULT * | m_plMsgResult |
typedef LRESULT(CMsgWnd::* CMsgWnd::PFNMSGHANDLER)(HWND hWnd, UINT iMsg, WPARAM wParam, LPARAM lParam) [protected] |
typedef void(CMsgWnd::* CMsgWnd::PFNCMDMSGHANDLER)() [protected] |
typedef LRESULT(CMsgWnd::* CMsgWnd::PFNNFYMSGHANDLER)(NMHDR &rMsgHdr) [protected] |
CMsgWnd::CMsgWnd | ( | ) |
CMsgWnd::CMsgWnd | ( | const CMsgWnd & | ) | [private] |
int CMsgWnd::HorzScrollPos | ( | int | iPos, |
bool | bRepaint = true |
||
) | [inline] |
int CMsgWnd::VertScrollPos | ( | int | iPos, |
bool | bRepaint = true |
||
) | [inline] |
int CMsgWnd::HorzScrollPos | ( | ) | [inline] |
int CMsgWnd::VertScrollPos | ( | ) | [inline] |
void CMsgWnd::HorzScrollRange | ( | int | iMin, |
int | iMax, | ||
bool | bRepaint = true |
||
) | [inline] |
void CMsgWnd::VertScrollRange | ( | int | iMin, |
int | iMax, | ||
bool | bRepaint = true |
||
) | [inline] |
LRESULT CMsgWnd::WndProc | ( | HWND | hWnd, |
UINT | iMsg, | ||
WPARAM | wParam, | ||
LPARAM | lParam | ||
) | [protected, virtual] |
Reimplemented in CDialog, CFrameWnd, CEditBox, CPopupWnd, CTabWndHost, CURLLabel, CCmdButton, and CStdWnd.
virtual LRESULT CMsgWnd::DefaultWndProc | ( | HWND | hWnd, |
UINT | iMsg, | ||
WPARAM | wParam, | ||
LPARAM | lParam | ||
) | [protected, pure virtual] |
void CMsgWnd::OnCreate | ( | const CRect & | rcClient | ) | [protected, virtual] |
Reimplemented in CDialog, CStatusBar, CDateTimePicker, CToolBar, CDecimalBox, CSDIFrame, CDlgFrame, CToolTip, and CCheckBoxList.
void CMsgWnd::OnActivate | ( | bool | bActivating | ) | [protected, virtual] |
Reimplemented in CPopupWnd.
void CMsgWnd::OnEraseBackground | ( | CDC & | rDC | ) | [protected, virtual] |
void CMsgWnd::OnPaint | ( | CDC & | rDC | ) | [protected, virtual] |
Reimplemented in CDialog, CSplitWnd, CFrameWnd, CStatusBar, CToolBar, CStatusBarIcon, CStatusBarLabel, CHintBar, CStatusBarPanel, CView, and CMainDlg.
void CMsgWnd::OnResize | ( | WCL::ResizeFlags | iFlag, |
const CSize & | NewSize | ||
) | [protected, virtual] |
void CMsgWnd::OnTimer | ( | WCL::TimerID | iTimerID | ) | [protected, virtual] |
Reimplemented in CCmdButton.
void CMsgWnd::OnShow | ( | bool | bShowing | ) | [protected, virtual] |
void CMsgWnd::OnDestroy | ( | ) | [protected, virtual] |
void CMsgWnd::OnNCDestroy | ( | ) | [protected, virtual] |
Reimplemented in CCmdButton.
void CMsgWnd::OnHorizScroll | ( | WCL::ScrollbarFlags | iCode, |
uint | iPos | ||
) | [protected, virtual] |
void CMsgWnd::OnVertScroll | ( | WCL::ScrollbarFlags | iCode, |
uint | iPos | ||
) | [protected, virtual] |
void CMsgWnd::OnCmdMsg | ( | uint | iID | ) | [protected, virtual] |
void CMsgWnd::OnCtrlMsg | ( | uint | iID, |
uint | iMsg, | ||
HWND | hControl | ||
) | [protected, virtual] |
Reimplemented in CToolBar.
LRESULT CMsgWnd::OnCtrlMsg | ( | NMHDR & | rMsgHdr | ) | [protected, virtual] |
Reimplemented in CToolBar, and CPropertyPage.
void CMsgWnd::OnReflectedCtrlMsg | ( | uint | iMsg | ) | [protected, virtual] |
void CMsgWnd::OnReflectedCtrlMsg | ( | NMHDR & | rMsgHdr | ) | [protected, virtual] |
Reimplemented in CTabCtrl.
void CMsgWnd::OnMeasureItem | ( | uint | iID, |
uint | iItem, | ||
uint & | iWidth, | ||
uint & | iHeight | ||
) | [protected, virtual] |
void CMsgWnd::OnDrawItem | ( | uint | iID, |
uint | iAction, | ||
uint | iState, | ||
CDC & | rDC, | ||
uint | iItem, | ||
const CRect & | rcItem | ||
) | [protected, virtual] |
Reimplemented in CCmdButton.
void CMsgWnd::OnSetCursor | ( | HWND | hWnd, |
uint | nHitCode, | ||
uint | nMouseMsg | ||
) | [protected, virtual] |
void CMsgWnd::OnCtlColour | ( | uint | nCtlClrMsg, |
HDC | hDC, | ||
HWND | hCtlWnd | ||
) | [protected, virtual] |
HBRUSH CMsgWnd::OnReflectedCtlClr | ( | uint | nCtlClrMsg, |
HDC | hDC | ||
) | [protected, virtual] |
Reimplemented in CURLLabel.
void CMsgWnd::OnHelp | ( | HELPINFO & | oInfo | ) | [protected, virtual] |
void CMsgWnd::OnUserMsg | ( | uint | nMsg, |
WPARAM | wParam, | ||
LPARAM | lParam | ||
) | [protected, virtual] |
void CMsgWnd::OnAppMsg | ( | uint | nMsg, |
WPARAM | wParam, | ||
LPARAM | lParam | ||
) | [protected, virtual] |
void CMsgWnd::OnRegisteredMsg | ( | uint | nMsg, |
WPARAM | wParam, | ||
LPARAM | lParam | ||
) | [protected, virtual] |
void CMsgWnd::OnHitTest | ( | const CPoint & | ptCursor | ) | [protected, virtual] |
Reimplemented in CDialog, and CStatusBar.
WNDPROC CMsgWnd::WindowProc | ( | WNDPROC | lpfnWndProc | ) | [inline, protected] |
void CMsgWnd::MsgHandled | ( | BOOL | bHandled | ) | [inline, protected] |
void CMsgWnd::MsgResult | ( | LRESULT | lResult | ) | [inline, protected] |
void CMsgWnd::SetMsgResult | ( | BOOL | bHandled, |
LRESULT | lResult | ||
) | [inline, protected] |
Set the result for the message.
This method replaces the need to make two calls - one to MsgHandled() and one to MsgResult() - with a single call.
BOOL * CMsgWnd::MsgHandledBuffer | ( | BOOL * | pbBuffer | ) | [inline, protected] |
LRESULT * CMsgWnd::MsgResultBuffer | ( | LRESULT * | plBuffer | ) | [inline, protected] |
CTRLMSG* CMsgWnd::m_pCtrlMsgTable [protected] |
BOOL* CMsgWnd::m_pbMsgHandled [private] |
LRESULT* CMsgWnd::m_plMsgResult [private] |