From ad4e888349c2d220828c93d2d50635ff23a6fc72 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Tue, 3 Jul 2012 17:22:40 +0000 Subject: AutoShutdown: plusified git-svn-id: http://svn.miranda-ng.org/main/trunk@737 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/AutoShutdown/frame.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/AutoShutdown/frame.cpp') diff --git a/plugins/AutoShutdown/frame.cpp b/plugins/AutoShutdown/frame.cpp index f9266b1906..8c288c5dba 100644 --- a/plugins/AutoShutdown/frame.cpp +++ b/plugins/AutoShutdown/frame.cpp @@ -87,7 +87,7 @@ static LRESULT CALLBACK ProgressBarSubclassProc(HWND hwndProgress,UINT msg,WPARA struct CountdownFrameWndData { /* sizeof=57, max cbClsExtra=40 on Win32 */ time_t countdown,settingLastTime; HANDLE hHookColorsChanged,hHookFontsChanged,hHookIconsChanged; - HANDLE hwndIcon,hwndProgress,hwndDesc,hwndTime,hwndToolTip; + HWND hwndIcon,hwndProgress,hwndDesc,hwndTime,hwndToolTip; HBRUSH hbrBackground; COLORREF clrBackground,clrText; HFONT hFont; @@ -459,7 +459,7 @@ static LRESULT CALLBACK FrameWndProc(HWND hwndFrame,UINT msg,WPARAM wParam,LPARA hdc=GetDC(dat->hwndTime); if(hdc!=NULL) { if(dat->hFont!=NULL) - hFontPrev=SelectObject(hdc,dat->hFont); + hFontPrev = (HFONT)SelectObject(hdc,dat->hFont); if(GetTextExtentPoint32(hdc,szOutput,lstrlen(szOutput),&size)) if(size.cx>=(rc.right-rc.left)) dat->flags&=FWPDF_TIMEISCLIPPED; -- cgit v1.2.3