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 itWM_PASTE,wParamandlParam.Typically the
OnXxxhandlers in base classes consist of a single line that callsDefWindowProc— ifCEdit::OnPasteexisted, that’s what it would do.