INT_PTR CMessageForwarder::OnInitDialog() { return GetDefaultReturnValue(m_hwnd,m_uMsg,m_wParam,m_lParam); }
INT_PTR CMessageForwarder::OnPrivateMessage(UINT uMsg,WPARAM wParam,LPARAM lParam) { return GetDefaultReturnValue(m_hwnd,m_uMsg,m_wParam,m_lParam); }
INT_PTR CMessageForwarder::ForwardMessage(HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM lParam) { m_hwnd = hwnd; m_uMsg = uMsg; m_wParam = wParam; m_lParam = lParam; /* Private message? */ if(uMsg > WM_APP && uMsg < 0xBFFF) { return OnPrivateMessage(uMsg,wParam,lParam); } switch(uMsg) { case WM_INITDIALOG: return OnInitDialog(); break; case WM_CTLCOLORSTATIC: return OnCtlColorStatic(reinterpret_cast<HWND>(lParam), reinterpret_cast<HDC>(wParam)); break; case WM_CTLCOLOREDIT: return OnCtlColorEdit(reinterpret_cast<HWND>(lParam), reinterpret_cast<HDC>(wParam)); break; case WM_HSCROLL: return OnHScroll(reinterpret_cast<HWND>(lParam)); break; case WM_APPCOMMAND: return OnAppCommand(reinterpret_cast<HWND>(wParam), GET_APPCOMMAND_LPARAM(lParam), GET_DEVICE_LPARAM(lParam), GET_KEYSTATE_LPARAM(lParam)); break; case WM_TIMER: return OnTimer(static_cast<int>(wParam)); break; case WM_MBUTTONUP: return OnMButtonUp(&MAKEPOINTS(lParam)); break; case WM_COMMAND: return OnCommand(wParam,lParam); break; case WM_NOTIFY: return OnNotify(reinterpret_cast<LPNMHDR>(lParam)); break; case WM_GETMINMAXINFO: return OnGetMinMaxInfo(reinterpret_cast<LPMINMAXINFO>(lParam)); break; case WM_SIZE: return OnSize(static_cast<int>(wParam), LOWORD(lParam),HIWORD(lParam)); break; case WM_CLOSE: return OnClose(); break; case WM_DESTROY: return OnDestroy(); break; case WM_NCDESTROY: return OnNcDestroy(); break; case EM_SETSEL: OnEMSetSel(wParam,lParam); break; } return GetDefaultReturnValue(hwnd,uMsg,wParam,lParam); }
INT_PTR CMessageForwarder::OnSize(int iType,int iWidth,int iHeight) { return GetDefaultReturnValue(m_hwnd,m_uMsg,m_wParam,m_lParam); }
INT_PTR CMessageForwarder::OnNcDestroy() { return GetDefaultReturnValue(m_hwnd,m_uMsg,m_wParam,m_lParam); }
INT_PTR CMessageForwarder::OnNotify(NMHDR *pnmhdr) { UNREFERENCED_PARAMETER(pnmhdr); return GetDefaultReturnValue(m_hwnd,m_uMsg,m_wParam,m_lParam); }
INT_PTR CMessageForwarder::OnGetMinMaxInfo(LPMINMAXINFO pmmi) { return GetDefaultReturnValue(m_hwnd,m_uMsg,m_wParam,m_lParam); }
INT_PTR CMessageForwarder::OnAppCommand(HWND hwnd,UINT uCmd,UINT uDevice,DWORD dwKeys) { return GetDefaultReturnValue(m_hwnd,m_uMsg,m_wParam,m_lParam); }
INT_PTR CMessageForwarder::OnCommand(WPARAM wParam,LPARAM lParam) { return GetDefaultReturnValue(m_hwnd,m_uMsg,m_wParam,m_lParam); }
INT_PTR CMessageForwarder::OnHScroll(HWND hwnd) { return GetDefaultReturnValue(m_hwnd,m_uMsg,m_wParam,m_lParam); }
INT_PTR CMessageForwarder::OnMButtonUp(const POINTS *pts) { return GetDefaultReturnValue(m_hwnd, m_uMsg, m_wParam, m_lParam); }
INT_PTR CMessageForwarder::OnCtlColorEdit(HWND hwnd,HDC hdc) { return GetDefaultReturnValue(m_hwnd,m_uMsg,m_wParam,m_lParam); }
INT_PTR CMessageForwarder::OnTimer(int iTimerID) { return GetDefaultReturnValue(m_hwnd,m_uMsg,m_wParam,m_lParam); }
INT_PTR CMessageForwarder::OnGetMinMaxInfo(LPMINMAXINFO pmmi) { UNREFERENCED_PARAMETER(pmmi); return GetDefaultReturnValue(m_hwnd,m_uMsg,m_wParam,m_lParam); }
INT_PTR CMessageForwarder::OnTimer(int iTimerID) { UNREFERENCED_PARAMETER(iTimerID); return GetDefaultReturnValue(m_hwnd,m_uMsg,m_wParam,m_lParam); }
INT_PTR CMessageForwarder::OnNotify(NMHDR *pnmhdr) { return GetDefaultReturnValue(m_hwnd,m_uMsg,m_wParam,m_lParam); }
INT_PTR CMessageForwarder::OnHScroll(HWND hwnd) { UNREFERENCED_PARAMETER(hwnd); return GetDefaultReturnValue(m_hwnd,m_uMsg,m_wParam,m_lParam); }
INT_PTR CMessageForwarder::OnMButtonUp(const POINTS *pts) { UNREFERENCED_PARAMETER(pts); return GetDefaultReturnValue(m_hwnd, m_uMsg, m_wParam, m_lParam); }