VOID APIENTRY drawText( HWND hwnd, char text[128], int x, int y )
{
HDC hdc;
PAINTSTRUCT ps;
wchar_t outputtext [128];
hdc = GetDC(hwnd);
memset( outputtext , 0, sizeof( outputtext ));
stringToWchar( text, outputtext );
ExtTextOut( hdc, x, y, NULL, NULL,
outputtext , _tcslen( outputtext ), NULL);
ReleaseDC(hwnd, hdc);
}
VOID APIENTRY initializeBackground( HWND hwnd )
{ HDC hdc;
PAINTSTRUCT ps;
hdc = BeginPaint(hwnd, &ps);
EndPaint(hwnd, &ps);
}