diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2015-04-24 21:52:13 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2015-04-24 21:52:13 +0000 |
commit | 712a95b62ed7ed6aef9ab078ccd4ac685f34b42c (patch) | |
tree | 748ea5e47f0abfb64de970d3b8993bfe2fb3acf2 /plugins/AutoShutdown/src/frame.cpp | |
parent | 383d28b152438345e129963e6c1a40e8e4f04293 (diff) |
AutoShutdown - common project
git-svn-id: http://svn.miranda-ng.org/main/trunk@13114 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/AutoShutdown/src/frame.cpp')
-rw-r--r-- | plugins/AutoShutdown/src/frame.cpp | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/plugins/AutoShutdown/src/frame.cpp b/plugins/AutoShutdown/src/frame.cpp index c9843510f0..efcc1c4071 100644 --- a/plugins/AutoShutdown/src/frame.cpp +++ b/plugins/AutoShutdown/src/frame.cpp @@ -19,7 +19,7 @@ along with this program (Shutdown-License.txt); if not, write to the Free Softwa Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-#include "common.h"
+#include "stdafx.h"
/* Show Frame */
extern HINSTANCE hInst;
@@ -58,15 +58,6 @@ static LOGFONT* GetDefaultFont(LOGFONT *lf) return (LOGFONT*)NULL;
}
-static HICON SetFrameTitleIcon(WORD hFrame,HICON hNewIcon)
-{
- HICON hPrevIcon;
- hPrevIcon=(HICON)CallService(MS_CLIST_FRAMES_GETFRAMEOPTIONS,MAKEWPARAM(FO_ICON,hFrame),0);
- CallService(MS_CLIST_FRAMES_SETFRAMEOPTIONS,MAKEWPARAM(FO_ICON,hFrame),(LPARAM)hNewIcon);
- if ((int)hPrevIcon==-1) return (HICON)NULL;
- return hPrevIcon;
-}
-
static LRESULT CALLBACK ProgressBarSubclassProc(HWND hwndProgress,UINT msg,WPARAM wParam,LPARAM lParam)
{
switch(msg) {
@@ -232,7 +223,6 @@ static LRESULT CALLBACK FrameWndProc(HWND hwndFrame,UINT msg,WPARAM wParam,LPARA UnhookEvent(dat->hHookIconsChanged);
/* other childs are destroyed automatically */
if (dat->hwndToolTip != NULL) DestroyWindow(dat->hwndToolTip);
- HICON hIcon=(HICON)SendMessage(dat->hwndIcon,STM_SETIMAGE,IMAGE_ICON,0);
break;
}
case WM_NCDESTROY:
@@ -585,7 +575,7 @@ void CloseCountdownFrame(void) /************************* Misc ***************************************/
-static int FrameModulesLoaded(WPARAM wParam,LPARAM lParam)
+static int FrameModulesLoaded(WPARAM, LPARAM)
{
if (ServiceExists(MS_CLIST_FRAMES_ADDFRAME)) {
LOGFONT lf;
|