home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / win_lrn / graphics / apppaint.c < prev    next >
Encoding:
C/C++ Source or Header  |  1988-08-11  |  484 b   |  27 lines

  1. #include "windows.h"
  2. #include "APP.h"
  3.  
  4. extern char szMessage[];
  5. extern int MessageLength;
  6.  
  7. void APPPaint( HWND, WORD, LONG );
  8.  
  9.  
  10. void APPPaint(  hWnd, wParam, lParam )
  11. HWND hWnd;
  12. WORD wParam;
  13. LONG lParam;
  14. {
  15.     PAINTSTRUCT ps;
  16.  
  17.     BeginPaint( hWnd, (LPPAINTSTRUCT)&ps );
  18.     TextOut( ps.hdc,
  19.              (short)10,
  20.              (short)10,
  21.              (LPSTR)szMessage,
  22.              (short)MessageLength );
  23.     EndPaint( hWnd, (LPPAINTSTRUCT)&ps );
  24. }
  25. /*
  26. */
  27.