fixed #54, titlebar works

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@253 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-10-10 12:39:07 +00:00
parent 0fd866977b
commit ca62ddf733
2 changed files with 4 additions and 2 deletions

View File

@@ -66,7 +66,9 @@ static LRESULT CALLBACK wndproc(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp) {
} else if(msg == WM_ERASEBKGND) {
return 1;
} else if(msg == WM_NCHITTEST) {
return HTCLIENT;
LPARAM style = GetWindowLongPtr(hWnd, GWL_STYLE);
if(style & WS_CHILD) return HTCLIENT;
return DefWindowProc(hWnd, msg, wp, lp);
} else if(msg == WM_DESTROY) {
MwLLDispatch(u->ll, close, NULL);
PostQuitMessage(0);