john pfeiffer
  • Home
  • Categories
  • Tags
  • Archives

Win CE c read file draw text

VOID APIENTRY drawText(  HWND hwnd, wchar_t text[128], int x, int y )
{    HDC  hdc;
        PAINTSTRUCT ps;
     hdc = GetDC(hwnd);
     ExtTextOut( hdc, x, y, NULL, NULL,
        text, _tcslen(text), NULL);
    ReleaseDC(hwnd, hdc);
}

VOID APIENTRY initializeBackground(  HWND hwnd )
{   HDC  hdc;
    PAINTSTRUCT ps;
    hdc = BeginPaint(hwnd, &ps);        
    EndPaint(hwnd, &ps);
}

  • « win ce from file mouse draw text
  • Win CE keys chars string to wchar »

Published

Feb 20, 2010

Category

c

~40 words

Tags

  • c-readfile 5
  • drawtext 2
  • win-ce 40