handleTopLevelWindowProc method
Handles top-level window messages for Flutter view.
hwnd
: The window handle.message
: The window message.wParam
: Additional message information.lParam
: Additional message information.
Implementation
int handleTopLevelWindowProc(int hwnd, int message, int wParam, int lParam) {
final result = calloc<IntPtr>();
final handled =
flutter.FlutterDesktopViewControllerHandleTopLevelWindowProc(
controller,
hwnd,
message,
wParam,
lParam,
result,
) !=
0;
final returnValue = handled ? result.value : 0;
free(result);
return returnValue;
}