From b4d51bb6ad3872b22d3ea52949d4cc5842c26da3 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 18 Sep 2019 20:49:45 +0300 Subject: - more shit cleared from C++ code; - Pascal code partially restored till the full container log implementation --- plugins/IEHistory/src/dlgHandlers.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'plugins/IEHistory') diff --git a/plugins/IEHistory/src/dlgHandlers.cpp b/plugins/IEHistory/src/dlgHandlers.cpp index 3feef25f7b..281232363c 100644 --- a/plugins/IEHistory/src/dlgHandlers.cpp +++ b/plugins/IEHistory/src/dlgHandlers.cpp @@ -94,8 +94,7 @@ int MoveIeView(HWND hWnd) { HistoryWindowData *data = (HistoryWindowData *)GetWindowLongPtr(hWnd, DWLP_USER); if (data) { - IEVIEWWINDOW ieWnd = { 0 }; - ieWnd.cbSize = sizeof(ieWnd); + IEVIEWWINDOW ieWnd = {}; ieWnd.parent = hWnd; ieWnd.hwnd = data->hIEView; ieWnd.iType = IEW_SETPOS; @@ -108,8 +107,7 @@ int MoveIeView(HWND hWnd) int DestroyIEView(HWND hWnd) { HistoryWindowData *data = (HistoryWindowData *)GetWindowLongPtr(hWnd, DWLP_USER); - IEVIEWWINDOW ieWnd = { 0 }; - ieWnd.cbSize = sizeof(ieWnd); + IEVIEWWINDOW ieWnd = {}; ieWnd.parent = hWnd; ieWnd.hwnd = data->hIEView; ieWnd.iType = IEW_DESTROY; @@ -319,8 +317,7 @@ int LoadNext(HWND hWnd) int ScrollToBottom(HWND hWnd) { HistoryWindowData *data = (HistoryWindowData *)GetWindowLongPtr(hWnd, DWLP_USER); - IEVIEWWINDOW ieWnd = { 0 }; - ieWnd.cbSize = sizeof(ieWnd); + IEVIEWWINDOW ieWnd = {}; ieWnd.iType = IEW_SCROLLBOTTOM; ieWnd.hwnd = data->hIEView; ieWnd.parent = hWnd; -- cgit v1.2.3