diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-09-24 18:08:07 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-09-24 18:08:07 +0000 |
commit | 555ce4dfcc5b028219da4e6401a32f7f976044ae (patch) | |
tree | 77ad49c389f73170ae4ece6d79742e5dff00d1ec /plugins/WebView | |
parent | ef62ee59a0cd7ce34af0f62fbe4768ac12320edb (diff) |
plugins cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@6211 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/WebView')
-rw-r--r-- | plugins/WebView/src/webview_datawnd.cpp | 14 |
1 files changed, 2 insertions, 12 deletions
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*
|