GrayString function user32

int GrayString(
  1. int hDC,
  2. int hBrush,
  3. Pointer<NativeFunction<GRAYSTRINGPROC>> lpOutputFunc,
  4. int lpData,
  5. int nCount,
  6. int X,
  7. int Y,
  8. int nWidth,
  9. int nHeight
)

The GrayString function draws gray text at the specified location. The function draws the text by copying it into a memory bitmap, graying the bitmap, and then copying the bitmap to the screen. The function grays the text regardless of the selected brush and background. GrayString uses the font currently selected for the specified device context.

BOOL GrayStringW(
  HDC            hDC,
  HBRUSH         hBrush,
  GRAYSTRINGPROC lpOutputFunc,
  LPARAM         lpData,
  int            nCount,
  int            X,
  int            Y,
  int            nWidth,
  int            nHeight
);

Implementation

int GrayString(
        int hDC,
        int hBrush,
        Pointer<NativeFunction<GRAYSTRINGPROC>> lpOutputFunc,
        int lpData,
        int nCount,
        int X,
        int Y,
        int nWidth,
        int nHeight) =>
    _GrayString(
        hDC, hBrush, lpOutputFunc, lpData, nCount, X, Y, nWidth, nHeight);