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/Weather | |
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/Weather')
-rw-r--r-- | plugins/Weather/src/weather_mwin.cpp | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/plugins/Weather/src/weather_mwin.cpp b/plugins/Weather/src/weather_mwin.cpp index c127214999..0d4ba8317a 100644 --- a/plugins/Weather/src/weather_mwin.cpp +++ b/plugins/Weather/src/weather_mwin.cpp @@ -23,9 +23,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #define MS_TOOLTIP_SHOWTIP "mToolTip/ShowTip"
#define MS_TOOLTIP_HIDETIP "mToolTip/HideTip"
-typedef BOOL (WINAPI *ft_TrackMouseEvent) (LPTRACKMOUSEEVENT lpEventTrack);
-
-static ft_TrackMouseEvent f_TrackMouseEvent = NULL;
static HANDLE hMwinWindowList;
static HANDLE hFontHook;
@@ -72,20 +69,19 @@ static LRESULT CALLBACK wndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPara break;
case WM_MOUSEMOVE:
- if (f_TrackMouseEvent)
{
TRACKMOUSEEVENT tme = {0};
tme.cbSize = sizeof(TRACKMOUSEEVENT);
tme.hwndTrack = hwnd;
tme.dwFlags = TME_QUERY;
- f_TrackMouseEvent(&tme);
+ TrackMouseEvent(&tme);
if (tme.dwFlags == 0)
{
tme.dwFlags = TME_HOVER | TME_LEAVE;
tme.hwndTrack = hwnd;
tme.dwHoverTime = CallService(MS_CLC_GETINFOTIPHOVERTIME, 0, 0);
- f_TrackMouseEvent(&tme);
+ TrackMouseEvent(&tme);
}
}
break;
@@ -326,12 +322,8 @@ int RedrawFrame(WPARAM wParam, LPARAM lParam) void InitMwin(void)
{
- HMODULE hUser = GetModuleHandle(_T("user32.dll"));
-
- if ( !ServiceExists(MS_CLIST_FRAMES_ADDFRAME)) return;
-
- f_TrackMouseEvent = (ft_TrackMouseEvent)GetProcAddress(hUser, "TrackMouseEvent");
-
+ if ( !ServiceExists(MS_CLIST_FRAMES_ADDFRAME))
+ return;
hMwinWindowList = (HANDLE)CallService(MS_UTILS_ALLOCWINDOWLIST,0,0);
|