diff options
author | wishmaster51@gmail.com <wishmaster51@gmail.com@c086bb3d-8645-0410-b8da-73a8550f86e7> | 2012-03-21 15:06:28 +0000 |
---|---|---|
committer | wishmaster51@gmail.com <wishmaster51@gmail.com@c086bb3d-8645-0410-b8da-73a8550f86e7> | 2012-03-21 15:06:28 +0000 |
commit | fc771dfd08bb363fb3767285ab88503edfebdf98 (patch) | |
tree | abf3ba01b3b58f7c59eccd909ab723a442db8a03 /Plugins/historyevents/options.cpp | |
parent | 21c218fcfe4373fd3a0b7c566e715964058bd403 (diff) |
HistoryEvents:
-x64 version
-destroy service functions
-support for costum langpacks
-updated header files
-updated copyrights
git-svn-id: http://pescuma.googlecode.com/svn/trunk/Miranda@238 c086bb3d-8645-0410-b8da-73a8550f86e7
Diffstat (limited to 'Plugins/historyevents/options.cpp')
-rw-r--r-- | Plugins/historyevents/options.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/Plugins/historyevents/options.cpp b/Plugins/historyevents/options.cpp index fb2bf53..03aeecd 100644 --- a/Plugins/historyevents/options.cpp +++ b/Plugins/historyevents/options.cpp @@ -1,5 +1,5 @@ /*
-Copyright (C) 2006 Ricardo Pescuma Domenecci
+Copyright (C) 2006-2012 Ricardo Pescuma Domenecci
This is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
@@ -26,7 +26,7 @@ Boston, MA 02111-1307, USA. HANDLE hOptHook = NULL;
-static BOOL CALLBACK OptionsDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
+static INT_PTR CALLBACK OptionsDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
void GetTemplare(Buffer<TCHAR> *buffer, HISTORY_EVENT_HANDLER *heh, int templates);
@@ -120,8 +120,8 @@ int InitOptionsCallback(WPARAM wParam,LPARAM lParam) OPTIONSDIALOGPAGE odp = {0};
odp.cbSize = sizeof(odp);
odp.hInstance = hInst;
- odp.ptszGroup = TranslateT("History");
- odp.ptszTitle = TranslateT("Events");
+ odp.ptszGroup = LPGENT("History");
+ odp.ptszTitle = LPGENT("Events");
odp.pfnDlgProc = OptionsDlgProc;
odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPTIONS);
odp.flags = ODPF_BOLDGROUPS | ODPF_TCHAR;
@@ -151,14 +151,11 @@ void DeInitOptions() BOOL ScreenToClient(HWND hWnd, LPRECT lpRect)
{
- BOOL ret;
-
POINT pt;
-
pt.x = lpRect->left;
pt.y = lpRect->top;
- ret = ScreenToClient(hWnd, &pt);
+ BOOL ret = ScreenToClient(hWnd, &pt);
if (!ret) return ret;
@@ -188,7 +185,7 @@ static void GetTextMetric(HFONT hFont, TEXTMETRIC *tm) }
-static BOOL CALLBACK OptionsDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam)
+static INT_PTR CALLBACK OptionsDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam)
{
static int avaiable = 0;
static int total = 0;
|