summaryrefslogtreecommitdiff
path: root/plugins/QuickReplies/options.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-02 20:55:18 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-02 20:55:18 +0000
commit78c0815c4118fe24ab78cce2dc48a6232dcd824a (patch)
tree8512c50df70b8dd80c919e88ade3419207c95956 /plugins/QuickReplies/options.cpp
parentce816d83a8c75808e0eb06832592bffefe4a8dc4 (diff)
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/QuickReplies/options.cpp')
-rw-r--r--plugins/QuickReplies/options.cpp32
1 files changed, 15 insertions, 17 deletions
diff --git a/plugins/QuickReplies/options.cpp b/plugins/QuickReplies/options.cpp
index 36776884ae..1c26b9c385 100644
--- a/plugins/QuickReplies/options.cpp
+++ b/plugins/QuickReplies/options.cpp
@@ -62,7 +62,7 @@ static LRESULT CALLBACK MessageEditSubclassProc(HWND hwnd,UINT msg,WPARAM wParam
return CallWindowProc(OldMessageEditProc, hwnd, msg, wParam, lParam);
}
-BOOL CALLBACK DlgProcOptionsPage(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
+INT_PTR CALLBACK DlgProcOptionsPage(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
switch(uMsg)
{
@@ -186,27 +186,25 @@ BOOL CALLBACK DlgProcOptionsPage(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM
static UINT expertOnlyControls[] = { IDC_VARIABLES, IDC_VARIABLES_HINT };
-INT_PTR OnOptInitialized(WPARAM wParam, LPARAM lParam)
+int OnOptInitialized(WPARAM wParam, LPARAM lParam)
{
TCHAR tabName[32];
mir_sntprintf(tabName, SIZEOF(tabName), _T("Button %x"), iNumber + 1);
OPTIONSDIALOGPAGE odp = {0};
-
- odp.cbSize = sizeof(odp);
- odp.ptszGroup = _T("Message Sessions");
- odp.ptszTitle = _T("Quick Replies");
- odp.ptszTab = tabName;
- odp.position = iNumber;
- odp.hInstance = hInstance;
- odp.flags = ODPF_TCHAR;
-
- odp.expertOnlyControls = expertOnlyControls;
- odp.nExpertOnlyControls = SIZEOF(expertOnlyControls);
-
- odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPTIONS_PAGE);
- odp.pfnDlgProc = DlgProcOptionsPage;
-
+ odp.cbSize = sizeof(odp);
+ odp.ptszGroup = _T("Message Sessions");
+ odp.ptszTitle = _T("Quick Replies");
+ odp.ptszTab = tabName;
+ odp.position = iNumber;
+ odp.hInstance = hInstance;
+ odp.flags = ODPF_TCHAR;
+
+ odp.expertOnlyControls = expertOnlyControls;
+ odp.nExpertOnlyControls = SIZEOF(expertOnlyControls);
+
+ odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPTIONS_PAGE);
+ odp.pfnDlgProc = DlgProcOptionsPage;
CallService(MS_OPT_ADDPAGE, wParam, (LPARAM)&odp);
return 0;