john pfeiffer
  • Home
  • Categories
  • Tags
  • Archives

clearRect

VOID clearRect( 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 */

  • « Create a linked list of files with c and Win CE
  • pop email with yahoo account thunderbird »

Published

Jun 3, 2010

Category

c

~22 words

Tags

  • clearrect 1
  • win-ce 40