home *** CD-ROM | disk | FTP | other *** search
/ Prima Shareware 3 / DuCom_Prima-Shareware-3_cd1.bin / PROGRAMO / C / APPSR / APPUN / APPEDIT.C < prev    next >
Encoding:
C/C++ Source or Header  |  1993-05-02  |  391 b   |  17 lines

  1. #define STRICT
  2. #include <windows.h>
  3. #include "apprun.h"
  4.  
  5. long WINAPI EditProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
  6.     {
  7.     switch(message)
  8.     {
  9.     case WM_KEYDOWN:
  10.         if(wParam == VK_RETURN || wParam == VK_TAB)
  11.         SendMessage(hWnd, WM_COMMAND, IDC_BUTTONS, 0);
  12.         return 0;
  13.  
  14.     }
  15.     return(CallWindowProc(lpfnOldEdit, hWnd, message, wParam, lParam));
  16.     }
  17.