WM_MOUSEMOVE
Dim p As POINTAPI
GetCursorPos p
ScreenToClient hwnd, p
Dim ff As RECT
Dim ff1 As RECT
SetRect ff, p.x, p.y, p.x, p.y
ff.Left = p.x - 15
ff.Top = p.y - 15
ff.right = p.x + 35
ff.bottom = p.y + 30
DrawFrameControl GetDC(hwnd), ff, DFC_BUTTON, DFCS_BUTTONPUSH
RoundRect GetDC(hwnd), ff.Left, ff.Top, ff.right, ff.bottom, 16, 16
( FillRect GetDC(hwnd), ff, GetSysColorBrush(16
Sleep 100
InvalidateRect hwnd, ff, 1
UpdateWindow hwnd
(ReleaseDC hwnd, GetDC(hwnd
UINT SetBoundsRect( HDC hdc, const RECT *lprect,
(UINT flags : DCB_RESET ( Clear Bounding Rectangle
(BOOL ValidateRect( HWND hWnd, const RECT *lpRect
validates the client area within a rectangle by removing the rectangle from the update region of the specified window.
BOOL InvalidateRect( HWND hWnd, const RECT
(*lpRect, BOOL bErase
The InvalidateRect function adds a rectangle to the specified window's update region. The update region represents the portion of the window's client area that must be redrawn.
(BOOL UpdateWindow( HWND hWnd
The UpdateWindow function updates the client area of the specified window by sending a WM_PAINT message to the window if the window's update region is not empty
(HDC GetDC( HWND hWnd
The GetDC function retrieves a handle to a device context (DC) for the client area of a specified window or for the entire screen