From 555ce4dfcc5b028219da4e6401a32f7f976044ae Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Tue, 24 Sep 2013 18:08:07 +0000 Subject: plugins cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@6211 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/WebView/src/webview_datawnd.cpp | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'plugins/WebView/src') diff --git a/plugins/WebView/src/webview_datawnd.cpp b/plugins/WebView/src/webview_datawnd.cpp index 6a8ae4e6d1..cfaae10b78 100644 --- a/plugins/WebView/src/webview_datawnd.cpp +++ b/plugins/WebView/src/webview_datawnd.cpp @@ -508,25 +508,15 @@ void SavewinSettings(void) /*****************************************************************************/ void ValidatePosition(HWND hwndDlg) { - typedef HMONITOR WINAPI MyMonitorFromPoint(POINT, DWORD); - typedef BOOL WINAPI MyGetMonitorInfo(HMONITOR, LPMONITORINFO); - - HMODULE hUserInstance = GetModuleHandle(_T("user32")); - RECT r; SystemParametersInfo(SPI_GETWORKAREA, 0, &r, 0); - MyGetMonitorInfo *LPMyGetMonitorInfo = (MyGetMonitorInfo*)GetProcAddress(hUserInstance, "GetMonitorInfoA"); - MyMonitorFromPoint *LPMyMonitorFromPoint = (MyMonitorFromPoint*)GetProcAddress(hUserInstance, "MonitorFromPoint"); - if (LPMyMonitorFromPoint == NULL || LPMyGetMonitorInfo == NULL) - return; - POINT pt = { 0, 0 }; - HMONITOR hMonitor = LPMyMonitorFromPoint(pt, MONITOR_DEFAULTTONEAREST); // always + HMONITOR hMonitor = MonitorFromPoint(pt, MONITOR_DEFAULTTONEAREST); // always MONITORINFO monitorInfo; monitorInfo.cbSize = sizeof(MONITORINFO); - if ( LPMyGetMonitorInfo(hMonitor, &monitorInfo)) + if ( GetMonitorInfo(hMonitor, &monitorInfo)) CopyMemory(&r, &monitorInfo.rcMonitor, sizeof(RECT)); // /window going off right of screen* -- cgit v1.2.3