随笔 - 2146  文章 - 97 评论 - 11767 trackbacks - 253

//声明:
MoveWindow(
  hWnd: HWND;               {窗口句柄}
  X, Y: Integer;            {位置}
  nWidth, nHeight: Integer; {大小}
  bRepaint: BOOL            {是否重绘}
): BOOL;

//举例: procedure TForm1.Button1Click(Sender: TObject); begin MoveWindow(Button1.Handle, 0, 0, ClientWidth, ClientHeight, True); end;
//效果图:

posted on 2008-02-12 15:47  万一  阅读(...)  评论(...编辑  收藏