WEB开发网
开发学院网页设计JavaScript 想让您的桌面文字背景透明吗? 阅读

想让您的桌面文字背景透明吗?

 2007-11-27 17:49:03 来源:WEB开发网   
核心提示:int main(void){ HWND hWnd; hWnd = GetDesktopWindow(); if ((hWnd = FindWindowEx(hWnd, 0, Progman, Program Manager)) == 0) return 1; if ((hWnd = FindWindowE

int main(void)
{
  HWND   hWnd;

  hWnd = GetDesktopWindow();
  if ((hWnd = FindWindowEx(hWnd, 0, Progman, Program Manager)) == 0)
    return 1;

  if ((hWnd = FindWindowEx(hWnd, 0, SysListView32, NULL)) == 0)
    return 1;

  
  SendMessage(hWnd, 0x1024, 0, 0x00ffffff); // Turn foregound to white

  InvalidateRect(hWnd, NULL, TRUE);     // Repaint

  return 0;
} // main()

Tags:桌面 文字 背景

编辑录入:coldstar [复制链接] [打 印]
赞助商链接