mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-16 04:51:16 +00:00
WndProc 82%
This commit is contained in:
parent
f57cf7b3b6
commit
ae2faf8366
@ -144,8 +144,6 @@ LRESULT WINAPI WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||||||
NotificationId type;
|
NotificationId type;
|
||||||
unsigned char keyCode = 0;
|
unsigned char keyCode = 0;
|
||||||
|
|
||||||
MINMAXINFO *mmi = (MINMAXINFO*) lParam;
|
|
||||||
|
|
||||||
if (!g_isle) {
|
if (!g_isle) {
|
||||||
return DefWindowProcA(hWnd, uMsg, wParam, lParam);
|
return DefWindowProcA(hWnd, uMsg, wParam, lParam);
|
||||||
}
|
}
|
||||||
@ -176,10 +174,10 @@ LRESULT WINAPI WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||||||
}
|
}
|
||||||
return DefWindowProcA(hWnd,uMsg,wParam,lParam);
|
return DefWindowProcA(hWnd,uMsg,wParam,lParam);
|
||||||
case WM_GETMINMAXINFO:
|
case WM_GETMINMAXINFO:
|
||||||
mmi->ptMaxTrackSize.x = (g_windowRect.right - g_windowRect.left) + 1;
|
((MINMAXINFO*) lParam)->ptMaxTrackSize.x = (g_windowRect.right - g_windowRect.left) + 1;
|
||||||
mmi->ptMaxTrackSize.y = (g_windowRect.bottom - g_windowRect.top) + 1;
|
((MINMAXINFO*) lParam)->ptMaxTrackSize.y = (g_windowRect.bottom - g_windowRect.top) + 1;
|
||||||
mmi->ptMinTrackSize.x = (g_windowRect.right - g_windowRect.left) + 1;
|
((MINMAXINFO*) lParam)->ptMinTrackSize.x = (g_windowRect.right - g_windowRect.left) + 1;
|
||||||
mmi->ptMinTrackSize.y = (g_windowRect.bottom - g_windowRect.top) + 1;
|
((MINMAXINFO*) lParam)->ptMinTrackSize.y = (g_windowRect.bottom - g_windowRect.top) + 1;
|
||||||
return 0;
|
return 0;
|
||||||
case WM_ENTERMENULOOP:
|
case WM_ENTERMENULOOP:
|
||||||
return DefWindowProcA(hWnd,uMsg,wParam,lParam);
|
return DefWindowProcA(hWnd,uMsg,wParam,lParam);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user