mirror of
https://github.com/wgh136/flutter_qjs.git
synced 2025-09-27 13:27:24 +00:00
android type wrapper
This commit is contained in:
@@ -122,9 +122,11 @@ bool Win32Window::CreateAndShow(const std::wstring& title,
|
||||
Scale(size.width, scale_factor), Scale(size.height, scale_factor),
|
||||
nullptr, nullptr, GetModuleHandle(nullptr), this);
|
||||
|
||||
OnCreate();
|
||||
if (!window) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return window != nullptr;
|
||||
return OnCreate();
|
||||
}
|
||||
|
||||
// static
|
||||
@@ -240,8 +242,9 @@ void Win32Window::SetQuitOnClose(bool quit_on_close) {
|
||||
quit_on_close_ = quit_on_close;
|
||||
}
|
||||
|
||||
void Win32Window::OnCreate() {
|
||||
bool Win32Window::OnCreate() {
|
||||
// No-op; provided for subclasses.
|
||||
return true;
|
||||
}
|
||||
|
||||
void Win32Window::OnDestroy() {
|
||||
|
Reference in New Issue
Block a user