Advertisement
6_2008-2009 Windows API Call/ Explanation #195761

Drag form without titlebar

Drag a form that has no titlebar! Add the routine listed below, and call it in the 'MouseDown' event of the form (or a control on the form): MoveWindow Me.Hwnd

AI

Shrnutí AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Zdrojový kód
original-source
Public Sub MoveWindow(TheHwnd As Long)
  'Drag the form with the mouse
  ReleaseCapture
  SendMessage TheHwnd, &HA1, 2, 0&
End Sub
Původní komentáře (3)
Obnoveno z Wayback Machine