home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / magazine / msysjour / vol05 / 05 / forms / form3.c < prev    next >
Text File  |  1990-09-01  |  973b  |  48 lines

  1. /*
  2.  * FORM LIBRARY - PRINT FORM MODULE
  3.  *
  4.  * 07/12/90 1.00 - Kevin P. Welch - initial creation.
  5.  *
  6.  */
  7.  
  8. #define NOCOMM
  9.  
  10. #include <windows.h>
  11. #include "form.h"
  12.  
  13. /**/
  14.  
  15. /*
  16.  * FormPrint( hWndParent, hData ) : HANDLE
  17.  *
  18.  *      hWndParent     handle to parent window
  19.  *      hData          handle to form data block
  20.  *
  21.  * This function displays a dialog box, enabling the user to print
  22.  * the contents of the current form.  If the printing process was
  23.  * successful the handle to the data block provided is returned.  If
  24.  * the printing process was cancelled, a value of NULL is returned.
  25.  *
  26.  */
  27.  
  28. HANDLE FAR PASCAL FormPrint(
  29.   HWND    hWndParent,
  30.   HANDLE  hData )
  31. {
  32.  
  33.   /* warning level 3 compatibility */
  34.   hWndParent;
  35.  
  36.   /* FORM PRINTING CODE HERE */
  37.   MessageBox(
  38.      hWndParent,
  39.      "Form being printed!",
  40.      "Form Library Stub",
  41.      MB_OK|MB_ICONASTERISK
  42.   );
  43.  
  44.   /* return handle to data block */
  45.   return( hData );
  46.  
  47. }
  48.