怎么样刷新桌面上(不是窗口)的一个指定矩形区域呢??

解决方案 »

  1.   

    BOOL InvalidateRect(
      HWND hWnd,  // handle of window with changed update region
      CONST RECT *lpRect,
                  // address of rectangle coordinates
      BOOL bErase // erase-background flag
    );
      

  2.   

    好像有个函数叫 GetDestopRect() ,楼主试试看
      

  3.   

    HWND GetDesktopWindow(VOID)
      

  4.   

    桌面也是窗体呀!
    The GetDesktopWindow function returns a handle to the desktop window. The desktop window covers the entire screen. The desktop window is the area on top of which all icons and other windows are painted. HWND GetDesktopWindow(VOID);
    不过这样对桌面进行处理在桌面刷新后都无效了,比如在桌面写字
      

  5.   

    InvalidateRect(GetDesktopWindow(), 屏幕坐标的rect,TRUE);
      

  6.   

    我想问问刷新桌面能看到什么效果:)
    我倒想问一个问题,能不能在桌面上写几个字呀:)
    比如我执行下面一句代码能有效果吗:)
    GetDesktopWindow()->GetDC()->TextOut(100,100,"Desktop");谢谢:)