[windows] Support drag

This commit is contained in:
Lea Anthony
2021-06-21 09:04:14 +10:00
parent 28d87a8e58
commit 3644f4ae1e

View File

@@ -70,6 +70,11 @@ class wv2ComHandler
loadAssets(app);
return S_OK;
}
else if (strcmp(m, "wails-drag") == 0) {
ReleaseCapture();
SendMessage(this->window, WM_NCLBUTTONDOWN, HTCAPTION, 0);
return S_OK;
}
else {
messageFromWindowCallback(m);
}