home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_02_11 / 2n11048a < prev    next >
Text File  |  1991-08-06  |  533b  |  25 lines

  1. /*  Windows Initialization Files -- sample source code Listing 4
  2.  *  Kevin H. Carlson  8/07/91
  3.  */
  4.  
  5.  
  6. extern int result;
  7.  
  8. LONG FAR PASCAL MainWndProc(HWND hWnd, WORD message, WORD wParam, LONG lParam)
  9. {
  10. switch(message)
  11.      {
  12.      .                   /* other message processing */
  13.      .
  14.      .
  15.      case WM_WININICHANGE:
  16.           GetProfileString(.....);/* load all needed info */
  17.           result = GetProfileInt(...);/* from WIN.INI         */
  18.           break;
  19.      .
  20.      .
  21.      .
  22.      }
  23. return FALSE;
  24. }
  25.