diff options
| author | crupest <crupest@outlook.com> | 2019-12-13 22:25:29 +0800 |
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2019-12-13 22:25:29 +0800 |
| commit | 3d3290a60d328b6d2a6d3fc4d8d7483583ed13aa (patch) | |
| tree | 3e2b75cfb70e96d4b5f4a0b5cb19a8c3cd20cf53 /src/win/native/window.cpp | |
| parent | 9110574bb51e9e2959842a7641f598d34c3cd847 (diff) | |
| download | cru-3d3290a60d328b6d2a6d3fc4d8d7483583ed13aa.tar.gz cru-3d3290a60d328b6d2a6d3fc4d8d7483583ed13aa.tar.bz2 cru-3d3290a60d328b6d2a6d3fc4d8d7483583ed13aa.zip | |
...
Diffstat (limited to 'src/win/native/window.cpp')
| -rw-r--r-- | src/win/native/window.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/win/native/window.cpp b/src/win/native/window.cpp index 6fd94838..f996af02 100644 --- a/src/win/native/window.cpp +++ b/src/win/native/window.cpp @@ -33,8 +33,8 @@ WinNativeWindow::WinNativeWindow(WinUiApplication* application, const auto window_manager = application->GetWindowManager(); hwnd_ = CreateWindowExW( - 0, window_manager->GetGeneralWindowClass()->GetName(), L"", window_style, - CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, + 0, window_class->GetName(), L"", window_style, CW_USEDEFAULT, + CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, parent == nullptr ? nullptr : parent->GetWindowHandle(), nullptr, application->GetInstanceHandle(), nullptr); @@ -419,7 +419,10 @@ void WinNativeWindow::OnMouseUpInternal(platform::native::MouseButton button, mouse_up_event_.Raise({button, dip_point}); } -void WinNativeWindow::OnMouseWheelInternal(short delta, POINT point) {} +void WinNativeWindow::OnMouseWheelInternal(short delta, POINT point) { + CRU_UNUSED(delta) + CRU_UNUSED(point) +} void WinNativeWindow::OnKeyDownInternal(int virtual_code) { key_down_event_.Raise(virtual_code); @@ -429,7 +432,7 @@ void WinNativeWindow::OnKeyUpInternal(int virtual_code) { key_up_event_.Raise(virtual_code); } -void WinNativeWindow::OnCharInternal(wchar_t c) {} +void WinNativeWindow::OnCharInternal(wchar_t c) { CRU_UNUSED(c) } void WinNativeWindow::OnActivatedInternal() {} |
