diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2012-06-28 18:34:22 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2012-06-28 18:34:22 +0000 |
commit | 5afcb73210219d4d44ffb736067ee21cd866ca10 (patch) | |
tree | d8d3101d3db671639ee0900a9d772a341f314594 /plugins/FileAsMessage/optionsdlg.cpp | |
parent | 8b61f04cad084e79e29775c34290ba1ebe8a5c3d (diff) |
FileAsMessage:
compilation fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@672 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/FileAsMessage/optionsdlg.cpp')
-rw-r--r-- | plugins/FileAsMessage/optionsdlg.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/plugins/FileAsMessage/optionsdlg.cpp b/plugins/FileAsMessage/optionsdlg.cpp index e39c574df2..da605d0f32 100644 --- a/plugins/FileAsMessage/optionsdlg.cpp +++ b/plugins/FileAsMessage/optionsdlg.cpp @@ -1,10 +1,4 @@ #include "main.h"
-#include "resource.h"
-
-#include <commctrl.h>
-
-#pragma comment(lib, "comctl32.lib")
-
DWORD settingDefault[] =
{
@@ -49,7 +43,7 @@ LRESULT CALLBACK OptionsDlgProc( HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM {
TranslateDialogDefault(hwndDlg);
- for(int indx = 0; indx < ARRAY_SIZE(settingId); indx++)
+ for(int indx = 0; indx < SIZEOF(settingId); indx++)
if(settingId[indx] > 0)
SendDlgItemMessage(hwndDlg, settingId[indx], CPM_SETCOLOUR, 0, DBGetContactSettingDword(NULL, SERVICE_NAME, settingName[indx], settingDefault[indx]));
else
@@ -65,7 +59,7 @@ LRESULT CALLBACK OptionsDlgProc( HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM if(//MAKEWPARAM(IDC_AUTO, BN_CLICKED) != wParam ||
MAKEWPARAM(IDC_ALPHANUM, BN_CLICKED) != wParam)
{
- for(int indx = 0; indx < ARRAY_SIZE(settingId); indx++)
+ for(int indx = 0; indx < SIZEOF(settingId); indx++)
{
if(LOWORD(wParam) == abs(settingId[indx]))
{
@@ -94,7 +88,7 @@ LRESULT CALLBACK OptionsDlgProc( HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM int value;
BOOL succ;
- for(int indx = 0; indx < ARRAY_SIZE(settingId); indx++)
+ for(int indx = 0; indx < SIZEOF(settingId); indx++)
{
if(settingId[indx] > 0)
value = SendDlgItemMessage(hwndDlg, settingId[indx], CPM_GETCOLOUR, 0, 0);
|