summaryrefslogtreecommitdiff
path: root/plugins/MyDetails/options.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-19 08:02:41 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-19 08:02:41 +0000
commit08dc125be616458112368e7154b29d5d23f1126e (patch)
tree1c27ef9b8525f45913c19bb6f4c18a31b6593749 /plugins/MyDetails/options.cpp
parenta63798c1b60eeb77352323ad4545630cdc5458f2 (diff)
Unicode in status message plugins
git-svn-id: http://svn.miranda-ng.org/main/trunk@1033 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MyDetails/options.cpp')
-rw-r--r--plugins/MyDetails/options.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/MyDetails/options.cpp b/plugins/MyDetails/options.cpp
index 05d38aa6cc..e879e078b7 100644
--- a/plugins/MyDetails/options.cpp
+++ b/plugins/MyDetails/options.cpp
@@ -70,7 +70,7 @@ static OptPageControl pageControls[] = {
// Initializations needed by options
void LoadOptions()
{
- LoadOpts(pageControls, MAX_REGS(pageControls), MODULE_NAME);
+ LoadOpts(pageControls, SIZEOF(pageControls), MODULE_NAME);
// This is created here to assert that this key always exists
opts.refresh_status_message_timer = DBGetContactSettingWord(NULL,"MyDetails","RefreshStatusMessageTimer",12);
@@ -88,7 +88,7 @@ int InitOptionsCallback(WPARAM wParam,LPARAM lParam)
odp.position = -200000000;
odp.hInstance = hInst;
odp.pfnDlgProc = DlgProcOpts;
- odp.pszTemplate = MAKEINTRESOURCE(IDD_OPTS);
+ odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPTS);
odp.pszGroup = LPGEN("Customize");
odp.pszTitle = LPGEN("My Details");
odp.flags = ODPF_BOLDGROUPS;
@@ -112,7 +112,7 @@ void DeInitOptions()
static BOOL CALLBACK DlgProcOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam)
{
- BOOL ret = SaveOptsDlgProc(pageControls, MAX_REGS(pageControls), MODULE_NAME, hwndDlg, msg, wParam, lParam);
+ BOOL ret = SaveOptsDlgProc(pageControls, SIZEOF(pageControls), MODULE_NAME, hwndDlg, msg, wParam, lParam);
switch (msg)
{
@@ -133,13 +133,13 @@ static BOOL CALLBACK DlgProcOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM l
{
EnableWindow(GetDlgItem(hwndDlg,IDC_SHOW_CYCLE_PROTO_BUTTON),FALSE);
}
- if (!ServiceExists(MS_SMILEYADD_BATCHPARSE))
+ if ( !ServiceExists(MS_SMILEYADD_BATCHPARSE))
{
EnableWindow(GetDlgItem(hwndDlg,IDC_REPLACE_SMILEYS),FALSE);
EnableWindow(GetDlgItem(hwndDlg,IDC_USE_CONTACT_LIST_SMILEYS),FALSE);
EnableWindow(GetDlgItem(hwndDlg,IDC_RESIZE_SMILEYS),FALSE);
}
- if (!ServiceExists(MS_CLIST_FRAMES_SETFRAMEOPTIONS))
+ if ( !ServiceExists(MS_CLIST_FRAMES_SETFRAMEOPTIONS))
{
EnableWindow(GetDlgItem(hwndDlg,IDC_RESIZE_FRAME),FALSE);
}