From 0dabb49b6f96aadde130a0c86207ede6c2a757c1 Mon Sep 17 00:00:00 2001 From: "wishmaster51@gmail.com" Date: Wed, 21 Mar 2012 10:48:51 +0000 Subject: -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 --- Plugins/avatarhistory/options.cpp | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) (limited to 'Plugins/avatarhistory/options.cpp') 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) { -- cgit v1.2.3