Take the window menu bar into account when drawing drag and drop frame.

[GB.GUI.BASE]
* BUG: Take the window menu bar into account when drawing drag and drop frame.
This commit is contained in:
gambas 2019-08-22 03:19:40 +02:00
parent b6900124a0
commit 445784e820

View file

@ -172,8 +172,8 @@ Static Public Sub _ShowDNDFrame(hCtrl As Control, X As Integer, Y As Integer, W
$iFrameX = X
$iFrameY = Y
X += hCtrl.ScreenX - hCtrl.Window.ScreenX
Y += hCtrl.ScreenY - hCtrl.Window.ScreenY
X += hCtrl.ScreenX - hCtrl.Window.ScreenX - hCtrl.Window.ClientX
Y += hCtrl.ScreenY - hCtrl.Window.ScreenY - hCtrl.Window.ClientY
'X -= 2
'Y -= 2