john pfeiffer
  • Home
  • Categories
  • Tags
  • Archives

Win CE keys chars draw text

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);
}

  • « Win CE from file update window main
  • Win CE from file update window handle error »

Published

Feb 26, 2010

Category

c

~52 words

Tags

  • chars 5
  • draw 3
  • keys 6
  • keys-chars 3
  • text 16
  • win 19
  • win-ce 40