summaryrefslogtreecommitdiff
path: root/Plugins/avatarhistory/options.cpp
diff options
context:
space:
mode:
authorwishmaster51@gmail.com <wishmaster51@gmail.com@c086bb3d-8645-0410-b8da-73a8550f86e7>2012-03-21 10:48:51 +0000
committerwishmaster51@gmail.com <wishmaster51@gmail.com@c086bb3d-8645-0410-b8da-73a8550f86e7>2012-03-21 10:48:51 +0000
commit0dabb49b6f96aadde130a0c86207ede6c2a757c1 (patch)
tree6a3c1b8a9bc19a06389eebf96c119b6907162b51 /Plugins/avatarhistory/options.cpp
parentc82cf89330030c99bad818859c4b169483820f93 (diff)
-first x64 version
-some unicode fixes -added VS2010 project files git-svn-id: http://pescuma.googlecode.com/svn/trunk/Miranda@232 c086bb3d-8645-0410-b8da-73a8550f86e7
Diffstat (limited to 'Plugins/avatarhistory/options.cpp')
-rw-r--r--Plugins/avatarhistory/options.cpp22
1 files changed, 9 insertions, 13 deletions
diff --git a/Plugins/avatarhistory/options.cpp b/Plugins/avatarhistory/options.cpp
index 9ca8766..acb40cd 100644
--- a/Plugins/avatarhistory/options.cpp
+++ b/Plugins/avatarhistory/options.cpp
@@ -30,8 +30,8 @@ Avatar History Plugin
Options opts;
-static BOOL CALLBACK OptionsDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
-static BOOL CALLBACK PopupsDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
+static INT_PTR CALLBACK OptionsDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
+static INT_PTR CALLBACK PopupsDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
static OptPageControl optionsControls[] = {
@@ -76,25 +76,21 @@ int OptInit(WPARAM wParam,LPARAM lParam)
odp.cbSize=sizeof(odp);
odp.position=0;
odp.hInstance=hInst;
- odp.ptszGroup = TranslateT("History"); // group to put your item under
- odp.ptszTitle = TranslateT("Avatar"); // name of the item
+ odp.ptszGroup = LPGENT("History"); // group to put your item under
+ odp.ptszTitle = LPGENT("Avatar"); // name of the item
odp.pfnDlgProc = OptionsDlgProc;
odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPTIONS);
odp.flags = ODPF_BOLDGROUPS | ODPF_TCHAR | ODPF_EXPERTONLY;
CallService(MS_OPT_ADDPAGE,wParam,(LPARAM)&odp);
- if(ServiceExists(MS_POPUP_ADDPOPUPEX)
-#ifdef UNICODE
- || ServiceExists(MS_POPUP_ADDPOPUPW)
-#endif
- )
+ if(ServiceExists(MS_POPUP_ADDPOPUPT))
{
ZeroMemory(&odp,sizeof(odp));
odp.cbSize=sizeof(odp);
odp.position=0;
odp.hInstance=hInst;
- odp.ptszGroup = TranslateT("Popups");
- odp.ptszTitle = TranslateT("Avatar Change");
+ odp.ptszGroup = LPGENT("Popups");
+ odp.ptszTitle = LPGENT("Avatar Change");
odp.pfnDlgProc = PopupsDlgProc;
odp.pszTemplate = MAKEINTRESOURCEA(IDD_POPUPS);
odp.flags = ODPF_BOLDGROUPS | ODPF_TCHAR;
@@ -120,7 +116,7 @@ void LoadOptions()
}
-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)
{
return SaveOptsDlgProc(optionsControls, MAX_REGS(optionsControls), MODULE_NAME, hwndDlg, msg, wParam, lParam);
}
@@ -168,7 +164,7 @@ static void PopupsEnableDisableCtrls(HWND hwndDlg)
}
-static BOOL CALLBACK PopupsDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam)
+static INT_PTR CALLBACK PopupsDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam)
{
switch (msg)
{