let's say I've got a handler of the wm_paste message in a CEdit descendant:
LRESULT CMyEdit::OnPaste(WPARAM wParam, LPARAM lParam)
{
//do some processing
return 0;
}
and let's say that in some cases I want to trigger the default behaviour for paste from this method. How do I do it? CEdit::OnPaste does not exist...
Cheers
Call CWnd::DefWindowProc
, passing it WM_PASTE
, wParam
and lParam
.
Typically the OnXxx
handlers in base classes consist of a single line that calls DefWindowProc
-- if CEdit::OnPaste
existed, that's what it would do.