1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
LRESULT CALLBACK SubProc(HWND hWnd, UINT uMsg, WPARAM wParam,
LPARAM lParam, UINT_PTR uIdSubclass, DWORD_PTR dwRefData)
{
switch (uMsg)
{
case WM_CHAR:
if(wParam=='\r') // check for return key
{
DefSubclassProc(hWnd, WM_CHAR, '\\', lParam);
DefSubclassProc(hWnd, WM_CHAR, 'n', lParam);
}
break;
}
return DefSubclassProc(hWnd, uMsg, wParam, lParam);
}
|