windows_programming_notes.nbk: Home | Index | Next Page: WM_NCACTIVATE | Previous Page: WM_MOVE


 WM_MOVING

The WM_MOVING message is sent to a window that the user is moving. By processing this message, an application can monitor the size and position of the drag rectangle and, if needed, change its size or position.

A window receives this message through its WindowProc function.

    LRESULT CALLBACK WindowProc(
      HWND hwnd,       // handle to window
      UINT uMsg,       // WM_MOVING
      WPARAM wParam,   // edge of window
      LPARAM lParam    // drag rectangle (LPRECT)
    );

Parameters

Return Values

An application should return TRUE if it processes this message.

Requirements

  Windows NT/2000 or later: Requires Windows NT 4.0 or later.
  Windows 95/98/Me: Requires Windows 95 or later.
  Header: Declared in Winuser.h; include Windows.h.

windows_programming_notes.nbk: Home | Index | Next Page: WM_NCACTIVATE | Previous Page: WM_MOVE


Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time