Ignore:
Timestamp:
May 13, 2002, 7:49:28 AM (23 years ago)
Author:
umoeller
Message:

Massive pager rework.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/helpers/gpih.h

    r154 r164  
    175175                                              PCH pchString);
    176176    typedef GPIHCHARSTRINGPOSAT *PGPIHCHARSTRINGPOSAT;
     177
     178    /*
     179     *@@ BKGNDINFO:
     180     *      background information passed into
     181     *      gpihFillBackground.
     182     *
     183     *      The color flags apply always. The
     184     *      bitmap flags apply only if hbm is
     185     *      not NULLHANDLE.
     186     *
     187     *@@added V0.9.19 (2002-05-07) [umoeller]
     188     */
     189
     190    typedef struct _BKGNDINFO
     191    {
     192        ULONG       flPaintMode;
     193                // a combination of one of the color
     194                // flags and one of the bitmap flags:
     195                // a) color flags
     196                #define PMOD_COLORMASK      0x000F
     197                #define PMOD_SOLID          0x0000  // solid color, use lcol1
     198                #define PMOD_TOPBOTTOM      0x0001  // spectrum, lcol1 = top, lcol2 = bottom
     199                #define PMOD_LEFTRIGHT      0x0002  // spectrum, lcol1 = left, lcol2 = right
     200                // b) bitmap flags
     201                #define PMOD_BMPMASK        0x00F0
     202                #define PMOD_BMP_CENTER     0x0000  // center the bitmap
     203                #define PMOD_BMP_SCALE_X    0x0002  // scale the bitmap to size in prcl,
     204                                                    // respect lScale
     205                #define PMOD_BMP_TILE       0x0004  // tile the bitmap
     206
     207        LONG        lcol1,              // color 1 (RGB)
     208                    lcol2;              // color 2 (RGB)
     209
     210        HBITMAP     hbm;                // bitmap or NULLHANDLE if none
     211        ULONG       lScale;             // only with PMOD_BMP_SCALE_X: how many times
     212                                        // the bmp should be scaled (as with WPS
     213                                        // folder "Background" page); this cannot
     214                                        // be zero then
     215
     216    } BKGNDINFO, *PBKGNDINFO;
     217
     218    VOID gpihFillBackground(HPS hps,
     219                            PRECTL prcl,
     220                            PBKGNDINFO pInfo);
    177221
    178222    /* ******************************************************************
Note: See TracChangeset for help on using the changeset viewer.