home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / MSJV5-6.ZIP / FORM2.ZIP / PAGE5.C < prev    next >
C/C++ Source or Header  |  1990-11-01  |  2KB  |  66 lines

  1. /*
  2.  * Page Selection Control - STYLE FLAGS MODULE
  3.  *
  4.  * LANGUAGE      : Microsoft C5.1
  5.  * MODEL         : small
  6.  * ENVIRONMENT   : Microsoft Windows 3.0 SDK
  7.  * STATUS        : operational
  8.  *
  9.  * This module defines the function responsible for converting
  10.  * binary style flags into textual equivalents.  This function can
  11.  * be used whenever a binary template that includes the page
  12.  * selection control is being translated into text.
  13.  *
  14.  *    Eikon Systems, Inc.
  15.  *    989 East Hillsdale Blvd, Suite 260
  16.  *    Foster City, California 94404
  17.  *    415-349-4664
  18.  *
  19.  * 11/30/89 1.00 - Kevin P. Welch - initial creation.
  20.  *
  21.  */
  22.  
  23. #define  NOCOMM
  24.  
  25. #include <windows.h>
  26. #include <control.h>
  27.  
  28. #include "page.h"
  29. #include "page.d"
  30.  
  31. /* */
  32.  
  33. /*
  34.  * PageFlags( wStyle, lpszStyle, wMaxStr ) : WORD;
  35.  *
  36.  *    wStyle         control style (low word)
  37.  *    lpszStyle      style flags string
  38.  *    wMaxStr        maximum string length
  39.  *
  40.  * This function converts the control style flags into a text
  41.  * string that corresponds to the constants defined in the
  42.  * control header file.
  43.  *
  44.  * Note that in this example it is assumed that sufficient
  45.  * space is available for the resulting string.
  46.  *
  47.  */
  48.  
  49. WORD FAR PASCAL PageFlags(
  50.    WORD        wStyle,
  51.    LPSTR       lpszStyle,
  52.    WORD        wMaxStr )
  53. {
  54.  
  55.    /* warning level 3 compatiblity */
  56.    wStyle;
  57.    wMaxStr;
  58.  
  59.    /* no style flags defined */
  60.    lstrcpy( lpszStyle, "" );
  61.  
  62.    /* return string length */
  63.    return( lstrlen(lpszStyle) );
  64.  
  65. }
  66.