ReactOS 0.4.16-dev-311-g9382aa2
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}
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
static HDC
Definition: imagelist.c:88
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
#define L(x)
Definition: ntvdm.h:50
INT WndHeight
Definition: rosperf.h:32
HDC BackgroundDc
Definition: rosperf.h:30
HWND Wnd
Definition: rosperf.h:24
HDC ForegroundDc
Definition: rosperf.h:29
HGDIOBJ WINAPI GetStockObject(_In_ int)
#define DEFAULT_GUI_FONT
Definition: wingdi.h:909
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
Definition: dc.c:1546
#define TextOut
Definition: wingdi.h:4483
BOOL WINAPI UpdateWindow(_In_ HWND)
BOOL WINAPI InvalidateRect(_In_opt_ HWND, _In_opt_ LPCRECT, _In_ BOOL)