From a4096cce8411b78ab0318ea54bb486cbf7d2c9e0 Mon Sep 17 00:00:00 2001 From: dreamsourcelabTAI Date: Tue, 2 Apr 2024 15:23:19 +0800 Subject: [PATCH] remove WinNativeWidget::resizeSelf() --- DSView/pv/winnativewidget.cpp | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/DSView/pv/winnativewidget.cpp b/DSView/pv/winnativewidget.cpp index cfa198ac..99c548ea 100644 --- a/DSView/pv/winnativewidget.cpp +++ b/DSView/pv/winnativewidget.cpp @@ -441,23 +441,6 @@ bool WinNativeWidget::getMonitorWorkArea(HMONITOR hMonitor, int *outWidth, int * return false; } -void WinNativeWidget::resizeSelf() -{ - if (_hWnd) - { - RECT rc; - GetWindowRect(_hWnd, &rc); - int x = rc.left; - int y = rc.top; - int w = rc.right - rc.left; - int h = rc.bottom - rc.top; - - MoveWindow(_hWnd, x, y, w - 1 , h - 1 , 1); - MoveWindow(_hWnd, x, y, w , h , 1); - ShowWindow(_hWnd, SW_SHOW); - } -} - void WinNativeWidget::ResizeChild() { if (_childWindow != NULL){