ReactOS  0.4.15-dev-3294-ge98684e
text.c File Reference
#include <windows.h>
#include "rosperf.h"
Include dependency graph for text.c:

Go to the source code of this file.

Functions

void TextProc (void *Context, PPERF_INFO PerfInfo, unsigned Reps)
 

Function Documentation

◆ TextProc()

void TextProc ( void Context,
PPERF_INFO  PerfInfo,
unsigned  Reps 
)

Definition at line 23 of file text.c.

24 {
25  unsigned Rep;
26  int y;
27  HDC Dc = NULL;
29 
30  for (Rep = 0; Rep < Reps; )
31  {
32  Dc = (Rep & 0x10000) ? PerfInfo->BackgroundDc : PerfInfo->ForegroundDc;
33  SelectObject(Dc, hfFont);
34 
35  for (y = 0; y < PerfInfo->WndHeight && Rep < Reps; Rep++, y += 15)
36  {
37  TextOut(Dc, 0, y, L"AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz:?<>0123456789", 66);
38  }
39  InvalidateRect(PerfInfo->Wnd, NULL, TRUE);
40  UpdateWindow(PerfInfo->Wnd);
41  }
42 }
HGDIOBJ WINAPI GetStockObject(_In_ int)
HWND Wnd
Definition: rosperf.h:24
#define TRUE
Definition: types.h:120
static HDC
Definition: imagelist.c:92
BOOL WINAPI UpdateWindow(_In_ HWND)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
Definition: dc.c:1539
HDC BackgroundDc
Definition: rosperf.h:30
INT WndHeight
Definition: rosperf.h:32
BOOL WINAPI InvalidateRect(_In_opt_ HWND, _In_opt_ LPCRECT, _In_ BOOL)
#define DEFAULT_GUI_FONT
Definition: wingdi.h:909
static const WCHAR L[]
Definition: oid.c:1250
#define NULL
Definition: types.h:112
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
HDC ForegroundDc
Definition: rosperf.h:29
#define TextOut
Definition: wingdi.h:4483