home *** CD-ROM | disk | FTP | other *** search
- #define STRICT
- #include <windows.h>
- #include "apprun.h"
-
- long WINAPI EditProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
- {
- switch(message)
- {
- case WM_KEYDOWN:
- if(wParam == VK_RETURN || wParam == VK_TAB)
- SendMessage(hWnd, WM_COMMAND, IDC_BUTTONS, 0);
- return 0;
-
- }
- return(CallWindowProc(lpfnOldEdit, hWnd, message, wParam, lParam));
- }
-