movewindow和set movewindow和set-Microsoft Learn

2022-12-29 09:32:40 浏览数 (1)

   (.h)

  In this

   the and of the window. For a top-level windowmovewindow和set, the and are to the upper-left corner of the screen. For a child window, they are to the upper-left corner of the parent window's client area.

  Syntax

   BOOL MoveWindow(

代码语言:javascript复制
      [in] HWND hWnd,
      [in] int  X,
      [in] int  Y,
      [in] int  nWidth,
      [in] int  nHeight,
    
      [in] BOOL bRepaint
    );

  [in] hWnd

  Type: HWND

  A handle to the window.

  [in] X

  Type: int

  The new of the left side of the window.

  [in] Y

  Type: int

  The new of the top of the window.

  [in] nWidth

  Type: int

  The new width of the window.

  [in]

  Type: int

  The new height of the window.

  [in]

  Type: BOOL

   the window is to be . If this is TRUE, the window a . If the is FALSE, no of any kind occurs. This to the client area, the area ( the title bar and scroll bars), and any part of the parent window as a result of moving a child window.

  Return value

  Type: BOOL

  If the , the return value is .

  If the fails, the return value is zero. To get error , call .

  If the is TRUE, the system sends the to the window after moving the window (that is, the calls the ). If is FALSE, the must or redraw any parts of the window and parent window that need .

   sends the , ,, , and to the window.

  For an ,seemovewindow和set, , and Sizing Child .

   client

   [ apps only]

   server

   Server [ apps only]

  Target

  Header

  .h ( .h)

  User32.lib

  DLL

  User32.dll

  API set

ext-ms-win-ntuser-window-l1-1-1 ( in 8.1)

  See also

  Other

本文共 2 个字数,平均阅读时长 ≈ 1分钟

0 人点赞