Private Declare Function SetWindowPos Lib "user32" Alias "SetWindowPos" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long Form_Load里面: Call SetWindowPos(PaintForm.hwnd, -1, 0, 0, 0, 0, 3) ' 窗口置前
Form_Load里面:
Call SetWindowPos(PaintForm.hwnd, -1, 0, 0, 0, 0, 3) ' 窗口置前