1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
LRESULT CALLBACK EditProc(HWND hwndEdit, UINT msg, WPARAM wParam, LPARAM lParam)
{
switch(msg)
{
case WM_CUT:
CallWindowProc(wpOrigEditProc, hwndEdit, msg, wParam, lParam);
break;
case WM_COPY:
CallWindowProc(wpOrigEditProc, hwndEdit, msg, wParam, lParam);
break;
default:
return CallWindowProc(wpOrigWindowProc, hwndEdit, msg, wParam, lParam);
}
return 0;
}
| |