john pfeiffer
  • Home
  • Categories
  • Tags
  • Archives

Win CE clear display

VOID clearDisplay( HWND hwnd )
{
    RECT rc;
    HDC  hdc;

    GetWindowRect( hwnd, &rc );
    if( rc.top >0 )
    {    rc.top=0;    }
    hdc = GetDC( hwnd ); 
    FillRect( hdc , &rc , (HBRUSH) GetStockObject(WHITE_BRUSH) );

     ReleaseDC(hwnd, hdc);    
 }/* end function */

  • « Win CE draw pixel
  • Win CE Input Keyboard »

Published

Aug 1, 2010

Category

c

~23 words

Tags

  • cleardisplay 1
  • convert-to-win32 13
  • FillRect 1
  • win-ce 40